]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
spec: Cat test-suite.log if make check fails
authorJiri Denemark <jdenemar@redhat.com>
Mon, 29 Jul 2013 15:36:20 +0000 (17:36 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 29 Jul 2013 16:14:02 +0000 (18:14 +0200)
Current automake enables parallel test by default, which means test
details are only logged in test-suite.log and not printed to stderr.
This patch makes test failures directly visible in RPM build logs even
when parallel tests are turned on.

libvirt.spec.in

index 81101e8e5a918bf8e861c4c57f38d97bd640d1b4..a3a831f58ee6a4435b82ac862a4e737cda481135 100644 (file)
@@ -1482,7 +1482,11 @@ do
   printf '#!/bin/sh\nexit 0\n' > $i
   chmod +x $i
 done
-make check
+if ! make check VIR_TEST_DEBUG=1
+then
+  cat test-suite.log || true
+  exit 1
+fi
 
 %if %{with_libvirtd}
 %pre daemon