[functional-tests] give all temporary files sensible names.

This makes it much easier when debugging a test.
This commit is contained in:
Joe Thornber
2017-08-29 14:46:59 +01:00
parent 13cee36804
commit 33f0c23ca1
4 changed files with 52 additions and 46 deletions

View File

@@ -28,7 +28,8 @@
(apply fmt #f (map dsp (intersperse " " cmd-and-args))))
(define (run . cmd-and-args)
(with-temp-file (stdout-file stderr-file)
(with-temp-file ((stdout-file "stdout")
(stderr-file "stderr"))
(let* ((short-cmd (build-command-line cmd-and-args))
(cmd (fmt #f (dsp (build-command-line cmd-and-args))
(dsp " > ")