linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: tests: 006-image-on-missing-device: fix btrfs tool path
@ 2016-07-04 22:48 Luis Henriques
  2016-07-08 10:28 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Henriques @ 2016-07-04 22:48 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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 <henrix@camandro.org>
---
 tests/misc-tests/006-image-on-missing-device/test.sh | 4 ++--
 1 file 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 8680a707afbb..dd02d93e5fdd 100755
--- a/tests/misc-tests/006-image-on-missing-device/test.sh
+++ b/tests/misc-tests/006-image-on-missing-device/test.sh
@@ -61,12 +61,12 @@ test_run()
 	run_check $SUDO_HELPER umount $TEST_MNT
 
 	test_image_dump
-	run_check btrfs fi show $dev1
+	run_check $TOP/btrfs fi 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 fi show $dev1
 
 	test_image_dump
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-progs: tests: 006-image-on-missing-device: fix btrfs tool path
  2016-07-04 22:48 [PATCH] btrfs-progs: tests: 006-image-on-missing-device: fix btrfs tool path Luis Henriques
@ 2016-07-08 10:28 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2016-07-08 10:28 UTC (permalink / raw)
  To: Luis Henriques; +Cc: linux-btrfs, David Sterba

On Mon, Jul 04, 2016 at 11:48:47PM +0100, Luis Henriques wrote:
> 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 <henrix@camandro.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-08 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04 22:48 [PATCH] btrfs-progs: tests: 006-image-on-missing-device: fix btrfs tool path Luis Henriques
2016-07-08 10:28 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).