Skip to content

Commit

Permalink
Dump test command line to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Nov 30, 2024
1 parent 437380e commit 18ca9ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test-main.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
(error 'assertion-error "ERROR~%# (assert-equals ~a ~a)~%## ~a~%`~a`~%## ~a~%`~a`" lq rq lq l' rq r')))))

(define (godot scene)
(let ((program (or (getenv "GODOT") "godot")))
(system (format #f "~a --path demo ~a --headless --quit" program scene) #t)))
(let* ((program (or (getenv "GODOT") "godot"))
(cmd (format #f "~a --path demo ~a --headless --quit" program scene)))
(format #t "~a~%" cmd)
(system cmd #t)))

(define (read-file path)
(call-with-input-file path
Expand Down

0 comments on commit 18ca9ef

Please sign in to comment.