From: Jiri Denemark Date: Mon, 29 Jul 2013 15:36:20 +0000 (+0200) Subject: spec: Cat test-suite.log if make check fails X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=095ba43903e69dd9e1b81103d3c1c5dafcd1a5b7;p=libvirt.git spec: Cat test-suite.log if make check fails 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. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 81101e8e5a..a3a831f58e 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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