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 <dsterba@suse.com>
master
David Sterba 2019-07-02 13:49:13 +02:00
parent 53ae6525b9
commit 5dfbc7c42a
1 changed files with 1 additions and 1 deletions

View File

@ -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)