From: David Levine Date: Mon, 3 Mar 2014 15:14:09 +0000 (-0800) Subject: In test/common.sh.in trap, cd to $MH_TEST_DIR before trying X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7b9cb49c7c683bc69ac7fd2f20436ae2b40fbb6d In test/common.sh.in trap, cd to $MH_TEST_DIR before trying to remove its Mail subdirectory. rm on Solaris won't remove it if it's in the path of the current working directory. --- diff --git a/test/common.sh.in b/test/common.sh.in index 4cf06e28..67b18a82 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -266,7 +266,7 @@ setup_test () export PATH # clean old test data - trap "rm -rf '$MH_TEST_DIR/Mail'" 0 + trap "cd $MH_TEST_DIR; rm -rf '$MH_TEST_DIR/Mail'" 0 # setup test data mkdir -p "$MH_TEST_DIR/Mail" || exit 1 cat > "$MH" <