From 5dfbc7c42a5f9202e728939b582a8b33883da92f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 2 Jul 2019 13:49:13 +0200 Subject: [PATCH] btrfs-progs: tests: misc/021 run fs check with SUDO_HELPER The travis-ci fails at test misc-tests/021-image-multi-devices because the 'btrfs check' is not run with root permissions, unlike all the other commands. The check is read-only by default, so that should be safe. Signed-off-by: David Sterba --- tests/misc-tests/021-image-multi-devices/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/misc-tests/021-image-multi-devices/test.sh b/tests/misc-tests/021-image-multi-devices/test.sh index 26beae6e..1604df60 100755 --- a/tests/misc-tests/021-image-multi-devices/test.sh +++ b/tests/misc-tests/021-image-multi-devices/test.sh @@ -38,7 +38,7 @@ run_check $SUDO_HELPER wipefs -a "$loop2" run_check $SUDO_HELPER "$TOP/btrfs-image" -r "$IMAGE" "$loop1" # Run check to make sure there is nothing wrong for the recovered image -run_check "$TOP/btrfs" check "$loop1" +run_check $SUDO_HELPER "$TOP/btrfs" check "$loop1" run_check $SUDO_HELPER mount "$loop1" "$TEST_MNT" new_md5=$(run_check_stdout md5sum "$TEST_MNT/foobar" | cut -d ' ' -f 1)