btrfs-progs: tests: mkfs/011: Fix path for rootdir

Documentation folder path is wrong on exported testsutie. Fix this by
replace TOP with INTERNAL_BIN.

Signed-off-by: An Long <lan@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Long An 2019-12-17 06:36:51 +00:00 committed by David Sterba
parent 4be1b09293
commit bbb3d8f6f0

View File

@ -10,6 +10,6 @@ check_prereq mkfs.btrfs
tmp=$(mktemp -d --tmpdir btrfs-progs-mkfs.rootdirXXXXXXX)
# we can't use TEST_DEV, a file is needed
img=$(mktemp btrfs-progs-mkfs.rootdirXXXXXXX)
run_check "$TOP/mkfs.btrfs" -f --rootdir "$TOP/Documentation/" "$img"
run_check "$TOP/mkfs.btrfs" -f --rootdir "$INTERNAL_BIN/Documentation/" "$img"
rm -rf -- "$img"