diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-20 20:51:11 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-20 23:39:39 +0200 |
commit | 80885bf2c371d697c2719cc53975771ff36524de (patch) | |
tree | 2bab3cf8eb5cdc06255baf43f2b9b4e2c60f6f93 /sw | |
parent | 6d6bb989d1ba9af26518a110728f479d099b4562 (diff) |
gbuild: PythonTest: automatic GDB backtrace on failures
This requires changing the interface a bit to pass the directory
containing the test modules separately, because strangely the "unittest"
thingy cannot load the test modules by their absolute path when changing
the current working dir to where the core dump should happen.
So put the directory onto the PYTHONPATH to work around that;
arguably it's even nicer for clients this way.
Change-Id: I0d1d39f33d0c086c6c3014d2f9ba93f0a3dc0128
Diffstat (limited to 'sw')
-rw-r--r-- | sw/PythonTest_sw_unoapi.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/PythonTest_sw_unoapi.mk b/sw/PythonTest_sw_unoapi.mk index 20c6549aa558..a78f1c588c3b 100644 --- a/sw/PythonTest_sw_unoapi.mk +++ b/sw/PythonTest_sw_unoapi.mk @@ -48,9 +48,9 @@ $(eval $(call gb_PythonTest_use_components,sw_unoapi,\ unoxml/source/service/unoxml \ )) -$(eval $(call gb_PythonTest_add_classes,sw_unoapi,\ - $(SRCDIR)/sw/qa/python/set_expression.py \ - $(SRCDIR)/sw/qa/python/get_expression.py \ +$(eval $(call gb_PythonTest_add_modules,sw_unoapi,$(SRCDIR)/sw/qa/python,\ + set_expression \ + get_expression \ )) # vim: set noet sw=4 ts=4: |