From c1d7ba8b18461f21189d914c4cfcc72741b20e0d Mon Sep 17 00:00:00 2001 From: Avimitin Date: Wed, 4 Sep 2024 00:24:07 +0800 Subject: [PATCH] [t1rocket] pipe emulator log to stdout and file Signed-off-by: Avimitin --- nix/t1/run/run-vcs-emu.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/t1/run/run-vcs-emu.nix b/nix/t1/run/run-vcs-emu.nix index 2894cfe7b..8f5e5c039 100644 --- a/nix/t1/run/run-vcs-emu.nix +++ b/nix/t1/run/run-vcs-emu.nix @@ -32,7 +32,7 @@ stdenvNoCC.mkDerivation (finalAttr: { export RUST_BACKTRACE=full - "$emuDriver" $emuDriverArgs 1>$out/online-drive-emu-journal 2>$rtlEventOutPath || printError + "$emuDriver" $emuDriverArgs 1> >(tee $out/online-drive-emu-journal) 2>$rtlEventOutPath || printError echo "[nix] VCS run done" @@ -60,7 +60,7 @@ stdenvNoCC.mkDerivation (finalAttr: { ) offlineCheckArgs="''${offlineCheckArgsArray[@]}" echo -e "[nix] running offline check: \033[0;34m${emulator}/bin/offline $offlineCheckArgs\033[0m" - "${offline-checker}/bin/offline" $offlineCheckArgs &> $out/offline-check-journal + "${offline-checker}/bin/offline" $offlineCheckArgs &> >(tee $out/offline-check-journal) printf "$?" > $out/offline-check-status if [ "$(cat $out/offline-check-status)" != "0" ]; then