mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-28 22:54:12 +08:00
52fda816e8
Since we use 'source' in scripts, let's use bash everywhere. Signed-off-by: David Sterba <dsterba@suse.com>
25 lines
492 B
Bash
Executable File
25 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
# remove all intermediate files from tests
|
|
|
|
SCRIPT_DIR=$(dirname $(readlink -f $0))
|
|
TOP=$(readlink -f $SCRIPT_DIR/../)
|
|
source $TOP/tests/common
|
|
|
|
setup_root_helper
|
|
|
|
if [ "$BUILD_VERBOSE" = 1 ]; then
|
|
verbose=-print
|
|
fi
|
|
|
|
$SUDO_HELPER umount "$TEST_MNT" &>/dev/null
|
|
|
|
if ! cd $TOP/tests; then
|
|
echo "ERROR: cannot cd to $TOP/tests"
|
|
exit 1
|
|
fi
|
|
|
|
find fsck-tests -type f -name '*.restored' $verbose -delete
|
|
|
|
# do not remove, the file could have special permissions set
|
|
echo -n > test.img
|