diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2018-01-04 02:07:53 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-04 22:09:51 +0200 |
commit | 18675c3dea12220f95ffc58f3df2e9cc0fb25e84 (patch) | |
tree | cc79816c552613bb42419283d64b35141761a649 | |
parent | 0538009d30c02aba7f3b0e2fb22589c55fbe0fd0 (diff) | |
download | meson-18675c3dea12220f95ffc58f3df2e9cc0fb25e84.zip meson-18675c3dea12220f95ffc58f3df2e9cc0fb25e84.tar.gz meson-18675c3dea12220f95ffc58f3df2e9cc0fb25e84.tar.bz2 |
rpm: print testlog from 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 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; ) |