btrfs-progs: tests: fix TEST_LOG=dump in convert tests
Test failure in convert tests with log dump does not happen because _fail is called before that and exits. Other test types are ok. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c6487a7d1d
commit
eae83c46f7
|
@ -40,10 +40,10 @@ run_one_test() {
|
||||||
# Only support custom test scripts
|
# Only support custom test scripts
|
||||||
./test.sh
|
./test.sh
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
_fail "test failed for case $testname"
|
|
||||||
if [[ $TEST_LOG =~ dump ]]; then
|
if [[ $TEST_LOG =~ dump ]]; then
|
||||||
cat "$RESULTS"
|
cat "$RESULTS"
|
||||||
fi
|
fi
|
||||||
|
_fail "test failed for case $testname"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_fail "custom test script not found"
|
_fail "custom test script not found"
|
||||||
|
|
Loading…
Reference in New Issue