From eae83c46f79020f93cc85d3497951ea8db1cdd13 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 29 Aug 2017 17:42:28 +0200 Subject: [PATCH] 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 --- tests/convert-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"