]> diplodocus.org Git - nmh/commitdiff
In test/common.sh.in trap, cd to $MH_TEST_DIR before trying
authorDavid Levine <levinedl@acm.org>
Mon, 3 Mar 2014 15:14:09 +0000 (07:14 -0800)
committerDavid Levine <levinedl@acm.org>
Mon, 3 Mar 2014 15:14:09 +0000 (07:14 -0800)
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

index 4cf06e2..67b18a8 100644 (file)
@@ -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" <<EOF || exit 1