From dc6da57e0abfff72e71f1508f41f7edefd9991de Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 4 Jul 2019 12:55:33 +0200 Subject: [PATCH] btrfs-progs: tests: make test-clean work without built binaries 'make clean' followed by 'make test-clean' will fail due to the sanity check for 'btrfs' binary. We don't need that for cleaning the test, so turn the error into a warning. Signed-off-by: David Sterba --- tests/clean-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/clean-tests.sh b/tests/clean-tests.sh index 7c32ffab..eda16e32 100755 --- a/tests/clean-tests.sh +++ b/tests/clean-tests.sh @@ -21,8 +21,7 @@ else INTERNAL_BIN="$TEST_TOP" fi if ! [ -x "$TOP/btrfs" ]; then - echo "ERROR: cannot execute btrfs from TOP=$TOP" - exit 1 + echo "WARNING: cannot find btrfs in TOP=$TOP" fi TEST_DEV=${TEST_DEV:-} RESULTS="$TEST_TOP/cli-tests-results.txt"