diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2018-01-04 02:07:53 +0100 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2018-01-04 02:07:53 +0100 |
commit | 21fe901517b949ea649986b9ef0116130d16c15e (patch) | |
tree | a4c86efc818d3f60e1c29681d88b19aae3b48423 | |
parent | 54d0faa3ddc66ddfd2198b9cf18da0e4eb2c37dd (diff) | |
download | meson-ignatenko/macro-subshell.tar.gz |
rpm: print testlog from subshellignatenko/macro-subshell
false || { rc=$?; echo $rc; exit $rc } || :
Exits current shell without possibility to prevent that.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rw-r--r-- | data/macros.meson | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/macros.meson b/data/macros.meson index b31f77e17..732b68d24 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; ) |