From 18675c3dea12220f95ffc58f3df2e9cc0fb25e84 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 4 Jan 2018 02:07:53 +0100 Subject: rpm: print testlog from subshell false || { rc=$?; echo $rc; exit $rc } || : Exits current shell without possibility to prevent that. Signed-off-by: Igor Gnatenko --- data/macros.meson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/macros.meson b/data/macros.meson index b31f77e..732b68d 100644 --- a/data/macros.meson +++ b/data/macros.meson @@ -34,8 +34,8 @@ %meson_test \ %ninja_test -C %{_vpath_builddir} || \ - { rc=$?; \ + ( rc=$?; \ echo "-----BEGIN TESTLOG-----"; \ cat %{_vpath_builddir}/meson-logs/testlog.txt; \ echo "-----END TESTLOG-----"; \ - exit $rc; } + exit $rc; ) -- cgit v1.1