Commit 3c56ed8c authored by Raymond Toy's avatar Raymond Toy

Remove test files from tests

The tests create some files in /tmp.  Remove them when the test script
ends so that we get a clean directory.

I think this fixes the issue with the osx-runner sometimes failing
because it can't remove the temp files that I created locally when
testing locally.
parent ac4b9fc8
Pipeline #293 passed with stage
in 9 minutes and 30 seconds
......@@ -34,12 +34,19 @@ done
# Shift out the options
shift $[$OPTIND - 1]
# Create the test directory needed issue.45 test.
# Create the test directory needed by the issue.45 test.
rm -rf test-tmp
mkdir test-tmp
ln -s /bin/ls test-tmp/ls-link
# Cleanup temp files and directories that we created during testing.
function cleanup {
rm -f /tmp/trac.36.bom.txt /tmp/trac.43.txt
rm -rf /tmp/foo
}
trap cleanup EXIT
if [ $# -eq 0 ]; then
# No args so run all the tests
$LISP -noinit -load tests/run-tests.lisp -eval '(cmucl-test-runner:run-all-tests)'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment