From 5c5d470df26662c1dcc086b30ce2568c26a6553077afa734066a30fcafe08b34 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 1 Mar 2016 12:34:24 +0000 Subject: [PATCH] Emit test results on failure OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=75 --- varnish.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/varnish.spec b/varnish.spec index 725dba1..6ece07e 100644 --- a/varnish.spec +++ b/varnish.spec @@ -131,7 +131,11 @@ mkdir -p "$b/%_docdir/%name" cp -a ChangeLog LICENSE README "$b/%_docdir/%name/" %check -make %{?_smp_mflags} check +if ! make %{?_smp_mflags} check; then + x="$?" + cat bin/varnishtest/test-suite.log + exit "$x" +fi %pre %_bindir/getent group varnish >/dev/null || \