From: David Levine Date: Wed, 14 Mar 2012 00:58:33 +0000 (-0500) Subject: On some platforms, need to be out of $SPDIR in order to remove it. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=deceb473fdbaf526c46ff696a8d7afc3a81e4d90;p=mmh On some platforms, need to be out of $SPDIR in order to remove it. So do that in test/whatnow/test-ls. --- diff --git a/test/whatnow/test-ls b/test/whatnow/test-ls index f212e41..c289830 100755 --- a/test/whatnow/test-ls +++ b/test/whatnow/test-ls @@ -42,6 +42,8 @@ echo 'ls' | whatnow -noedit -prompt '' 2> "$actualerr" | sort > "$actual" check "$expectederr" "$actualerr" check "$expected" "$actual" +# On some platforms, need to be out of $SPDIR in order to remove it. +cd "$MH_TEST_DIR" test ${failed:-0} -eq 0 && rm -r "$SPDIR" exit $failed