From f551e9b88bccc7a77b2bca8d6c47cdcc32b4b3c2 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 15 Dec 2023 10:27:28 +0100 Subject: [PATCH] WIP show nix logs --- tests/run-nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/run-nix b/tests/run-nix index 642393f..eb54449 100755 --- a/tests/run-nix +++ b/tests/run-nix @@ -34,5 +34,12 @@ EOG [ -z "${DEBUG:-}" ] || nix-env -i cntr -nix-build --keep-failed /tmp/default.nix +if ! nix-build --keep-failed /tmp/default.nix; then + for log in /build/source/build/meson-logs/*; do + [ -f "\$log" ] || break + echo "=== \$log ===" + cat "\$log" + done + exit 1 +fi EOF