Skip to content

Commit

Permalink
tests: Show meson logs on failed nix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Dec 18, 2023
1 parent 0ed6167 commit 697e1ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/run-nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 697e1ec

Please sign in to comment.