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:
David Sterba 2017-08-29 17:42:28 +02:00
parent c6487a7d1d
commit eae83c46f7
1 changed files with 1 additions and 1 deletions

View File

@ -40,10 +40,10 @@ run_one_test() {
# Only support custom test scripts
./test.sh
if [ $? -ne 0 ]; then
_fail "test failed for case $testname"
if [[ $TEST_LOG =~ dump ]]; then
cat "$RESULTS"
fi
_fail "test failed for case $testname"
fi
else
_fail "custom test script not found"