Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Commit 3f1dea9

Browse files
committed
Sigh.
1 parent 50cd7c2 commit 3f1dea9

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

test.lisp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,15 @@
153153
(format NIL "/~a" (relpath (dir test) (default-output-directory))))
154154

155155
(defclass runner ()
156-
((description :initarg :description :accessor description)))
157-
158-
(defmethod initialize-instance :after ((runner runner) &key)
159-
(setf (description runner)
160-
(apply #'run-string (program runner)
161-
(eval-arguments runner '(format T "~a ~a on ~a ~a ~a"
162-
(lisp-implementation-type) (lisp-implementation-version)
163-
(machine-type) (software-type) (software-version))))))
156+
((description :initarg :description :initform NIL :accessor description)))
157+
158+
(defmethod description ((runner runner))
159+
(let ((val (slot-value runner 'description)))
160+
(or val (setf (description runner)
161+
(apply #'run-string (program runner)
162+
(eval-arguments runner '(format T "~a ~a on ~a ~a ~a"
163+
(lisp-implementation-type) (lisp-implementation-version)
164+
(machine-type) (software-type) (software-version))))))))
164165

165166
(defgeneric program (runner))
166167
(defgeneric load-arguments (runner file))

0 commit comments

Comments
 (0)