mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
The commit cebf3b3722
("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>
16 lines
524 B
Bash
Executable File
16 lines
524 B
Bash
Executable File
#!/bin/bash
|
|
# Regression test for mkfs.btrfs --rootdir on non-existent file.
|
|
# 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 "$TEST_TOP/common"
|
|
|
|
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"
|
|
|
|
rm -rf -- "$img"
|