From c96863bc7cc019661dc3235bbb3fbdb870b3d474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 23 Oct 2019 14:22:36 +0200 Subject: base: Write to 'evaluate' output to /var/log/cuirass. This fixes a longstanding issue where evalution output would splatter over the /var/log/cuirass.log and be inscrutable. * src/cuirass/base.scm (%cuirass-state-directory): New variable. (evaluation-log-file): New procedure. (evaluate)[log-file, log-pipe]: New variables. Call 'spawn-fiber' with a logging fiber. Wrap 'open-pipe*' call into 'with-error-to-port'. Close 'log-pipe'. --- build-aux/pre-inst-env.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build-aux') diff --git a/build-aux/pre-inst-env.in b/build-aux/pre-inst-env.in index e8d9487..e876661 100644 --- a/build-aux/pre-inst-env.in +++ b/build-aux/pre-inst-env.in @@ -27,6 +27,9 @@ export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH CUIRASS_DATADIR="$abs_top_srcdir/src" export CUIRASS_DATADIR +CUIRASS_STATE_DIRECTORY="${TMPDIR:-/tmp}/cuirass-tests/var" +export CUIRASS_STATE_DIRECTORY + PATH="$abs_top_builddir/bin:$PATH" export PATH -- cgit v1.2.3