diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/clean-tests.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/clean-tests.sh b/tests/clean-tests.sh index c1dc56a..f7fefdd 100755 --- a/tests/clean-tests.sh +++ b/tests/clean-tests.sh @@ -1,12 +1,17 @@ #!/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 -SCRIPT_DIR=$(dirname $(readlink -f $0)) -TOP=$(readlink -f $SCRIPT_DIR/../) +$SUDO_HELPER umount "$TEST_MNT" &>/dev/null if ! cd $TOP/tests; then echo "ERROR: cannot cd to $TOP/tests" |