diff options
author | Douglas Katzman <dougk@google.com> | 2020-08-05 22:13:52 -0400 |
---|---|---|
committer | Douglas Katzman <dougk@google.com> | 2020-08-05 22:14:33 -0400 |
commit | 10bfc6a78976393e014d189fbd5fdd6383187f38 (patch) | |
tree | d1519228bc75607201e018c0f3f21c389031a0e7 /tests/parallel-exec.sh | |
parent | aa6437fd95bfa2ccdd9b0aec39914908a12ff125 (diff) |
Number the failing runs if using --runs_per_test
Diffstat (limited to 'tests/parallel-exec.sh')
-rwxr-xr-x | tests/parallel-exec.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/parallel-exec.sh b/tests/parallel-exec.sh index 480b037c8..b00edbfd8 100755 --- a/tests/parallel-exec.sh +++ b/tests/parallel-exec.sh @@ -53,14 +53,15 @@ TEST_DIRECTORY=$junkdir SBCL_HOME=../obj/sbcl-home exec ../src/runtime/sbcl \ #+nil (format t "Runner is waiting on: ~S~%" subprocess-list) (multiple-value-bind (pid status) (sb-posix:wait) (decf subprocess-count) - (let ((process (assoc pid subprocess-list))) + (let ((process (assoc pid subprocess-list)) + (code (ash status -8)) + (et)) (unless process (warn "Whoa! Process ~D is an unexpected child" pid) (return-from wait (wait))) (setq subprocess-list (delete process subprocess-list)) - (let ((code (ash status -8)) - (filename (cadr process)) - (et (- (get-internal-real-time) (caddr process)))) + (destructuring-bind ((filename . iteration) start-time) (cdr process) + (setq et (- (get-internal-real-time) start-time)) (when vop-summary-stats-p (unless (sum-vop-usage (format nil "$logdir/~a.vop-usage" filename) t) (when (or (search ".pure" filename) (search ".impure" filename)) @@ -68,8 +69,9 @@ TEST_DIRECTORY=$junkdir SBCL_HOME=../obj/sbcl-home exec ../src/runtime/sbcl \ (cond ((eq code 104) (format t "~A: success (~d msec)~%" filename et)) (t - (format t "~A: status ~D (~d msec)~%" filename code et) - (push filename losing))))))) + (format t "~A~@[[~d]~]: status ~D (~d msec)~%" + filename iteration code et) + (push (list filename iteration pid) losing))))))) (sum-vop-usage (input deletep) (with-open-file (f input :if-does-not-exist nil) ;; No vop coverage file from shell script tests or any test @@ -122,7 +124,7 @@ TEST_DIRECTORY=$junkdir SBCL_HOME=../obj/sbcl-home exec ../src/runtime/sbcl \ (exit :code (if (unexpected-failures) 1 104))))) (format t "~A: pid ~d~@[ (trial ~d)~]~%" (car file) pid (cdr file)) (incf subprocess-count) - (push (list pid (car file) (get-internal-real-time)) subprocess-list))) + (push (list pid file (get-internal-real-time)) subprocess-list))) (loop (if (plusp subprocess-count) (wait) (return))) (when vop-summary-stats-p |