diff options
author | David Sterba <dsterba@suse.com> | 2016-11-18 15:02:50 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:51:21 +0100 |
commit | 6572f884ba0958af7591947028cec5adcbf21193 (patch) | |
tree | fb219d7ca3b4a68114ae47443f1b238cc2233ca2 /tests/misc-tests/006-image-on-missing-device | |
parent | a2214e582cb77a17d460218489f9affedff5b049 (diff) |
btrfs-progs: tests: use the root helper for various info retrieval commands
The current user might not be able to peek into the loop files directly,
use the helper. Discovered by running tests in travis.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests/006-image-on-missing-device')
-rwxr-xr-x | tests/misc-tests/006-image-on-missing-device/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc-tests/006-image-on-missing-device/test.sh b/tests/misc-tests/006-image-on-missing-device/test.sh index 83a6a056..8133d2b1 100755 --- a/tests/misc-tests/006-image-on-missing-device/test.sh +++ b/tests/misc-tests/006-image-on-missing-device/test.sh @@ -60,12 +60,12 @@ test_run() run_check $SUDO_HELPER umount $TEST_MNT test_image_dump - run_check $TOP/btrfs filesystem show $dev1 + run_check $SUDO_HELPER $TOP/btrfs filesystem show $dev1 # create a degraded raid1 filesystem, check must succeed # btrfs-image must not loop run_mayfail wipefs -a $dev2 run_check $SUDO_HELPER losetup -d $dev2 - run_check $TOP/btrfs filesystem show $dev1 + run_check $SUDO_HELPER $TOP/btrfs filesystem show $dev1 test_image_dump } |