summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-08-29 17:42:28 +0200
committerDavid Sterba <dsterba@suse.com>2017-09-08 16:15:05 +0200
commiteae83c46f79020f93cc85d3497951ea8db1cdd13 (patch)
treef7db3b1fb9a529b0b2527a528d5cfcf3856a10e8 /tests
parentc6487a7d1d0ae7c4c37785838c4817bd4f864fb7 (diff)
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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/convert-tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh
index 42479df9..57fd9252 100755
--- a/tests/convert-tests.sh
+++ b/tests/convert-tests.sh
@@ -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"