mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-14 09:40:47 +00:00
f6bbe06c08
Executing the script inside the directories as './test.sh' is not supposed to work but could happen accidentally. With an exit after attempting to source the we can fix that. Signed-off-by: David Sterba <dsterba@suse.com>
16 lines
296 B
Bash
Executable File
16 lines
296 B
Bash
Executable File
#!/bin/bash
|
|
# test for 'filesystem show' on fresh local file
|
|
|
|
source "$TEST_TOP/common" || exit
|
|
|
|
check_prereq mkfs.btrfs
|
|
check_prereq btrfs
|
|
|
|
setup_root_helper
|
|
|
|
_mktemp_local img 3g
|
|
run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f img
|
|
run_check $SUDO_HELPER "$TOP/btrfs" filesystem show img
|
|
|
|
rm -f img
|