rpm: print test logs on failure

References: https://bugzilla.redhat.com/show_bug.cgi?id=1500248
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
pull/2487/head
Zbigniew Jędrzejewski-Szmek 8 years ago committed by Jussi Pakkanen
parent 94cfb42222
commit 92219a2739
  1. 7
      data/macros.meson

@ -33,4 +33,9 @@
%ninja_install -C %{_vpath_builddir}
%meson_test \
%ninja_test -C %{_vpath_builddir}
%ninja_test -C %{_vpath_builddir} || \
{ rc=$?; \
echo "-----BEGIN TESTLOG-----"; \
cat %{_vpath_builddir}/meson-logs/testlog.txt; \
echo "-----END TESTLOG-----"; \
exit $rc; }

Loading…
Cancel
Save