From 7b9cb49c7c683bc69ac7fd2f20436ae2b40fbb6d Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 3 Mar 2014 07:14:09 -0800 Subject: [PATCH] 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. --- test/common.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" <