2015-05-25 14:08:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# remove all intermediate files from tests
|
|
|
|
|
2015-08-31 05:04:38 +00:00
|
|
|
SCRIPT_DIR=$(dirname $(readlink -f $0))
|
|
|
|
TOP=$(readlink -f $SCRIPT_DIR/../)
|
|
|
|
source $TOP/tests/common
|
|
|
|
|
|
|
|
setup_root_helper
|
|
|
|
|
2015-05-25 14:08:46 +00:00
|
|
|
if [ "$BUILD_VERBOSE" = 1 ]; then
|
|
|
|
verbose=-print
|
|
|
|
fi
|
|
|
|
|
2015-08-31 05:04:38 +00:00
|
|
|
$SUDO_HELPER umount "$TEST_MNT" &>/dev/null
|
2015-05-25 14:08:46 +00:00
|
|
|
|
|
|
|
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
|