diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2020-06-08 15:14:49 +0200 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-06-09 10:32:19 +0200 |
commit | f73ed5579157a074093bae7a2ffb59a85412be0d (patch) | |
tree | 4da9852eb057f0508fdb056591e53c4fc8f3ad03 /gnu/build/linux-initrd.scm | |
parent | 8423c2d3097da2d9d25b6f56c1971ac7147d3ad9 (diff) | |
download | guix-f73ed5579157a074093bae7a2ffb59a85412be0d.tar.gz guix-f73ed5579157a074093bae7a2ffb59a85412be0d.zip |
installer: utils: Dump command output to syslog when testing.
When debugging the installation tests, it can be very handy to be able to read
"run-command" output, for instance when executing "guix system init".
Introduce a new "invoke-with-log" procedure that is able to log a command
standard and error outputs to the syslog. Use it, only when running the
installation tests, to dump "run-command" output.
* gnu/installer/utils.scm (open-pipe-with-stderr, invoke-with-log): New
procedures,
(invoke-log-port): new variable,
(run-command): move to the end of the file and use invoke-with-log when
running the installation tests.
Diffstat (limited to 'gnu/build/linux-initrd.scm')
0 files changed, 0 insertions, 0 deletions