diff options
author | Nicholas D Steeves <nsteeves@gmail.com> | 2016-04-23 00:41:30 +0100 |
---|---|---|
committer | Nicholas D Steeves <nsteeves@gmail.com> | 2016-04-23 00:41:30 +0100 |
commit | cec572daccafa1e912cbed363df6f84687778c6f (patch) | |
tree | 7d99ab9f73d25c1ed8eaf6393f6374edf5316b03 /tests/clean-tests.sh |
btrfs-progs (4.4.1-1.1) unstable; urgency=medium
* Non-maintainer upload.
* New upstream release.
* Rename package to btrfs-progs (Closes: #780081)
* Update standards version to 3.9.7 (no changes needed).
* debian/control: Add "Breaks" per Gianfranco Costamagna's suggestion
* Change lintian override to reflect package rename
* Switch from using postinst and postrm to using triggers
per Christian Seiler's recommendation.
# imported from the archive
Diffstat (limited to 'tests/clean-tests.sh')
-rwxr-xr-x | tests/clean-tests.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/clean-tests.sh b/tests/clean-tests.sh new file mode 100755 index 00000000..f7fefdda --- /dev/null +++ b/tests/clean-tests.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# 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 |