rpm: print testlog from subshell
false || { rc=$?; echo $rc; exit $rc } || :
Exits current shell without possibility to prevent that.
%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; )
