path: root/tests/misc-tests/006-image-on-missing-device/
diff options
authorLuis Henriques <>2016-07-04 23:48:47 +0100
committerDavid Sterba <>2016-07-13 18:44:33 +0200
commit08c70e18defee0eed543f5a2ee88beed7a710d5f (patch)
tree8645df10d27cbf186944573c5348afc4ea87025c /tests/misc-tests/006-image-on-missing-device/
parenta804254361a8cf04696ba3869a66c131ee6c3d4b (diff)
btrfs-progs: tests: 006-image-on-missing-device: fix btrfs tool path
If btrfs isn't in the path, this test will fail with: [TEST/misc] 006-image-on-missing-device failed: btrfs fi show /dev/loop0 test failed for case 006-image-on-missing-device Makefile:226: recipe for target 'test-misc' failed make: *** [test-misc] Error 1 Fix the test script by adding $TOP to the path. Signed-off-by: Luis Henriques <> [ updated to full command names ] Signed-off-by: David Sterba <>
Diffstat (limited to 'tests/misc-tests/006-image-on-missing-device/')
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc-tests/006-image-on-missing-device/ b/tests/misc-tests/006-image-on-missing-device/
index 8680a707..b22a95d7 100755
--- a/tests/misc-tests/006-image-on-missing-device/
+++ b/tests/misc-tests/006-image-on-missing-device/
@@ -61,12 +61,12 @@ test_run()
run_check $SUDO_HELPER umount $TEST_MNT
- run_check btrfs fi show $dev1
+ run_check $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 btrfs fi show $dev1
+ run_check $TOP/btrfs filesystem show $dev1