btrfs-progs: tests: fix source path for testsuite
authorDavid Sterba <dsterba@suse.com>
Mon, 12 Mar 2018 18:17:49 +0000 (19:17 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 20:15:54 +0000 (22:15 +0200)
The commit cebf3b37228cbde730a5 ("btrfs-progs: introduce TEST_TOP and
INTERNAL_BIN for tests") did not convert all test paths. This would
break the exported testsutie.

Signed-off-by: David Sterba <dsterba@suse.com>
tests/fsck-tests/015-tree-reloc-tree/test.sh
tests/misc-tests/028-superblock-recover/test.sh
tests/misc-tests/029-send-p-different-mountpoints/test.sh
tests/mkfs-tests/010-minimal-size/test.sh
tests/mkfs-tests/011-rootdir-create-file/test.sh
tests/mkfs-tests/012-rootdir-no-shrink/test.sh
tests/mkfs-tests/013-reserved-1M-for-single/test.sh

index afad1e8..21987b0 100755 (executable)
@@ -5,7 +5,7 @@
 # Also due to the short life span of reloc tree, save the as dump example for
 # later usage.
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq btrfs
 
index 1175e48..a177e1e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Test that any superblock is correctly detected and fixed by btrfs rescue
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq btrfs
 check_prereq mkfs.btrfs
index 6a38015..0b42b77 100755 (executable)
@@ -2,7 +2,7 @@
 # test that send -p does not corrupt paths when send is using 2 different mount
 # points
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq btrfs
 check_prereq mkfs.btrfs
index 62f8e16..582533c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # test if the reported minimal size of mkfs.btrfs is valid
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq mkfs.btrfs
 check_prereq btrfs
index c04f711..20f7c4c 100755 (executable)
@@ -3,7 +3,7 @@
 # Expected behavior: it should create a new file if destination doesn't exist
 # Regression 460e93f25754 ("btrfs-progs: mkfs: check the status of file at mkfs")
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq mkfs.btrfs
 
index c1cb04f..045906a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Test if mkfs.btrfs --rootdir will skip shrinking correctly
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq mkfs.btrfs
 
index 1490df2..caeb7d5 100755 (executable)
@@ -6,7 +6,7 @@
 # using btrfs_alloc_chunk() which won't use the 0~1M range, so other profiles
 # are safe, but we test them nevertheless.
 
-source "$TOP/tests/common"
+source "$TEST_TOP/common"
 
 check_prereq mkfs.btrfs
 check_prereq btrfs