Create a dummy test-status.lisp-expr when running shell tests.
authorJoshua Elsasser <joshua@elsasser.org>
Wed, 24 Aug 2011 04:31:07 +0000 (21:31 -0700)
committerJoshua Elsasser <joshua@elsasser.org>
Wed, 24 Aug 2011 04:31:07 +0000 (21:31 -0700)
The test-status.lisp-expr file isn't used for shell tests, but the
impure runner doesn't know that and tries to read it
anyway. Initialize the file before running shell tests to avoid
reporting failures from the last test run, or failing entirely if it
doesn't exist.

tests/run-tests.lisp

index 80e28ac..0069333 100644 (file)
                                       (list (native-namestring ,file))
                                       :environment (test-util::test-env)
                                       :output *error-output*)))
+     (let ((*failures* nil))
+       (test-util:report-test-status))
      (sb-ext:quit :unix-status (process-exit-code process))))
 
 (defun accept-test-file (file)