mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-17 02:06:51 +00:00
The usage of 'source' is a bashism, and '.' should be used instead. This is causing fuzz-tests/001-simple-unmounted to fail in systems where /bin/sh isn't bash: [TEST/fuzz] 001-simple-unmounted ./test.sh: 5: ./test.sh: source: not found ./test.sh: 7: ./test.sh: setup_root_helper: not found ./test.sh: 8: ./test.sh: check_prereq: not found ./test.sh: 18: ./test.sh: check_all_images: not found Since most (all?) tests actually use /bin/bash, change this test to use bash too. Signed-off-by: Luis Henriques <henrix@camandro.org> Signed-off-by: David Sterba <dsterba@suse.com>
21 lines
307 B
Bash
Executable File
21 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# iterate over all fuzzed images and run 'btrfs check'
|
|
|
|
source $TOP/tests/common
|
|
|
|
setup_root_helper
|
|
check_prereq btrfs
|
|
|
|
# redefine the one provided by common
|
|
check_image() {
|
|
local image
|
|
|
|
image=$1
|
|
run_mayfail $TOP/btrfs check "$image"
|
|
}
|
|
|
|
check_all_images $TOP/tests/fuzz-tests/images
|
|
|
|
exit 0
|