diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-09-25 08:11:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-09-25 09:10:42 +0200 |
commit | 0ddcdaf289aa2e3d986811b6289b11880284602e (patch) | |
tree | 12a7a791d33ab5398ca13dfd200480bc8425abe8 /solenv/gbuild/PythonTest.mk | |
parent | 2dd3d03b5350e18cb5f39978022620b55d3d8c5b (diff) |
Adapt PythonTest on macOS to PRE-/POSTGDBTRACE
Change-Id: Ie23f2fc2e588721ab87e35f52f306e342a5ab246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103368
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv/gbuild/PythonTest.mk')
-rw-r--r-- | solenv/gbuild/PythonTest.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk index 998df0767d2c..bc404d4fb817 100644 --- a/solenv/gbuild/PythonTest.mk +++ b/solenv/gbuild/PythonTest.mk @@ -9,7 +9,7 @@ # PythonTest class -# (gb_PythonTest_GDBTRACE is defined alongside gb_CppunitTest_GDBTRACE in CppunitTest.mk) +# (gb_PythonTest_GDBTRACE et al are defined alongside gb_CppunitTest_GDBTRACE in CppunitTest.mk) gb_PythonTest_UNITTESTFAILED ?= $(GBUILDDIR)/platform/unittest-failed-default.sh @@ -48,7 +48,9 @@ else $(if $(gb_CppunitTest__interactive),, \ $(if $(value gb_CppunitTest_postprocess), \ rm -fr $@.core && mkdir $@.core && cd $@.core &&)) \ - ($(if $(filter gdb,$(gb_PythonTest_GDBTRACE)),,$(gb_PythonTest_PRECOMMAND)) \ + { \ + $(if $(gb_PythonTest_PREGDBTRACE),$(gb_PythonTest_PREGDBTRACE) &&) \ + $(if $(filter gdb,$(gb_PythonTest_GDBTRACE)),,$(gb_PythonTest_PRECOMMAND)) \ $(if $(G_SLICE),G_SLICE=$(G_SLICE)) \ $(if $(GLIBCXX_FORCE_NEW),GLIBCXX_FORCE_NEW=$(GLIBCXX_FORCE_NEW)) \ $(DEFS) \ @@ -62,12 +64,15 @@ else $(ICECREAM_RUN) $(gb_PythonTest_GDBTRACE) $(gb_CppunitTest_VALGRINDTOOL) $(gb_CppunitTest_RR) \ $(gb_PythonTest_COMMAND) \ $(if $(PYTHON_TEST_NAME),$(PYTHON_TEST_NAME),$(MODULES)) \ + $(if $(gb_PythonTest_POSTGDBTRACE), \ + ; RET=$$? && $(gb_PythonTest_POSTGDBTRACE) && (exit $$RET)) \ + ; } \ $(if $(gb_CppunitTest__interactive),, \ > $@.log 2>&1 \ || ($(if $(value gb_CppunitTest_postprocess), \ RET=$$?; \ $(call gb_CppunitTest_postprocess,$(gb_PythonTest_EXECUTABLE_GDB),$@.core,$$RET) >> $@.log 2>&1;) \ - cat $@.log; $(gb_PythonTest_UNITTESTFAILED) Python $*)))) + cat $@.log; $(gb_PythonTest_UNITTESTFAILED) Python $*))) $(call gb_Trace_EndRange,$*,PYT) endif |