installer: final: Dump "guix system init" command output when testing.
When debugging the installation tests, it can be very handy to be able to read "guix system init" command output. * gnu/installer/final.scm (install-system): Dump installation command output to the console when running the installation tests.
This commit is contained in:
parent
ce16b07d10
commit
9392652e91
1 changed files with 12 additions and 1 deletions
|
@ -205,7 +205,18 @@ (define* (install-system locale #:key (users '()))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(start-service 'cow-store (list (%installer-target-dir))))
|
(start-service 'cow-store (list (%installer-target-dir))))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(run-command install-command #:locale locale))
|
;; If there are any connected clients, assume that we are running
|
||||||
|
;; installation tests. In that case, dump the standard and error
|
||||||
|
;; outputs to syslog.
|
||||||
|
(if (not (null? (current-clients)))
|
||||||
|
(with-output-to-file "/dev/console"
|
||||||
|
(lambda ()
|
||||||
|
(with-error-to-file "/dev/console"
|
||||||
|
(lambda ()
|
||||||
|
(setvbuf (current-output-port) 'none)
|
||||||
|
(setvbuf (current-error-port) 'none)
|
||||||
|
(run-command install-command #:locale locale)))))
|
||||||
|
(run-command install-command #:locale locale)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(stop-service 'cow-store)
|
(stop-service 'cow-store)
|
||||||
;; Remove the store overlay created at cow-store service start.
|
;; Remove the store overlay created at cow-store service start.
|
||||||
|
|
Loading…
Reference in a new issue