mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
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>
This commit is contained in:
parent
53ae6525b9
commit
5dfbc7c42a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user