From 53205f9dca94fe8f9f54ad375e9151b4516791a1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 9 Mar 2016 12:13:16 +0000 Subject: [PATCH] When tests fail, dump out test-suite.log so we can debug it. --- nbdkit.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nbdkit.spec b/nbdkit.spec index d4bd6ce..220d014 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -6,7 +6,7 @@ Name: nbdkit Version: 1.1.11 -Release: 5%{?dist} +Release: 6%{?dist} Summary: NBD server License: BSD @@ -260,7 +260,10 @@ export LIBGUESTFS_TRACE=1 %ifnarch %{arm} ppc %{power64} # Broken on i686 because of https://bugzilla.redhat.com/show_bug.cgi?id=1302071 %ifnarch %{ix86} -make check +make check || { + cat tests/test-suite.log + exit 1 + } %endif %endif %endif @@ -365,6 +368,9 @@ make check %changelog +* Wed Mar 09 2016 Richard W.M. Jones - 1.1.11-6 +- When tests fail, dump out test-suite.log so we can debug it. + * Fri Feb 05 2016 Richard W.M. Jones - 1.1.11-5 - Don't run tests on x86, because kernel is broken there (https://bugzilla.redhat.com/show_bug.cgi?id=1302071)