commit f74e0d5841e5ba642640c98ea53969d8a5170bb7
parent 1f07cd635633cddc82042c586854b76f95e03e08
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 30 Oct 2026 02:07:04 +0530
parent 1f07cd635633cddc82042c586854b76f95e03e08
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 30 Oct 2026 02:07:04 +0530
Print Debian fixture logs when CI checks fail
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/tests/deb-backend.sh b/tests/deb-backend.sh @@ -5,7 +5,14 @@ if [ "$(uname -s)" != Linux ] || ! command -v dpkg-deb >/dev/null 2>&1; then echo 'SKIP: real Debian backend checks require Linux and dpkg-deb'; exit 0 fi work=$(mktemp -d) -trap 'rm -rf "$work"' 0 +cleanup() { + result=$? + if [ "$result" != 0 ]; then + for log in "$work"/*.log; do [ ! -f "$log" ] || tail -60 "$log" >&2; done + fi + rm -rf "$work" +} +trap cleanup 0 mkdir -p "$work/recipe" cat > "$work/recipe/APKBUILD" <<'RECIPE' pkgname=deb-fixture
: nply/foundationpkgs