[Libreoffice-commits] core.git: solenv/gbuild
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Feb 19 19:00:58 UTC 2017
solenv/gbuild/UITest.mk | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit e1538ed0b0dd623a6bd3971e5f3c8cecc11c8d60
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Feb 19 19:51:00 2017 +0100
uitest: allow tests in each module
Change-Id: I95be6c97e7c01159f274397b636ef0599d872c0f
diff --git a/solenv/gbuild/UITest.mk b/solenv/gbuild/UITest.mk
index 09cd53f..2182682 100644
--- a/solenv/gbuild/UITest.mk
+++ b/solenv/gbuild/UITest.mk
@@ -52,14 +52,14 @@ $(call gb_UITest_get_target,%) :| $(gb_UITest_DEPS)
URE_BOOTSTRAP=vnd.sun.star.pathname:$(call gb_Helper_get_rcfile,$(INSTROOT)/$(LIBO_ETC_FOLDER)/fundamental) \
PYTHONPATH="$(PYPATH)" \
TestUserDir="$(call gb_Helper_make_url,$(dir $(call gb_UITest_get_target,$*)))" \
- PYTHONDONTWRITEBYTECODE=1 \
+ PYTHONDONTWRITEBYTECODE=0 \
$(if $(filter-out MACOSX WNT,$(OS_FOR_BUILD)),$(if $(ENABLE_HEADLESS),, \
SAL_USE_VCLPLUGIN=svp \
)) \
$(gb_UITest_COMMAND) \
--soffice=path:$(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice \
--userdir=$(call gb_Helper_make_url,$(dir $(call gb_UITest_get_target,$*))user) \
- --dir=$(SRCDIR)/uitest/$(strip $(MODULES)) \
+ --dir=$(strip $(MODULES)) \
$(gb_UITest_GDBTRACE) \
$(if $(gb_UITest__interactive),, \
> $@.log 2>&1 \
@@ -70,7 +70,7 @@ $(call gb_UITest_get_target,%) :| $(gb_UITest_DEPS)
# always use udkapi and URE services
define gb_UITest_UITest
-$(call gb_UITest_get_target,$(1)) : PYPATH := $(SRCDIR)/unotest/source/python$$(gb_CLASSPATHSEP)$(INSTROOT)/$(LIBO_LIB_PYUNO_FOLDER)$(if $(filter-out $(LIBO_LIB_PYUNO_FOLDER),$(LIBO_LIB_FOLDER)),$(gb_CLASSPATHSEP)$(INSTROOT)/$(LIBO_LIB_FOLDER))
+$(call gb_UITest_get_target,$(1)) : PYPATH := $(SRCDIR)/uitest$$(gb_CLASSPATHSEP)$(INSTROOT)/$(LIBO_LIB_PYUNO_FOLDER)$(if $(filter-out $(LIBO_LIB_PYUNO_FOLDER),$(LIBO_LIB_FOLDER)),$(gb_CLASSPATHSEP)$(INSTROOT)/$(LIBO_LIB_FOLDER))
$(call gb_UITest_get_target,$(1)) : MODULES :=
$(eval $(call gb_Module_register_target,$(call gb_UITest_get_target,$(1)),$(call gb_UITest_get_clean_target,$(1))))
@@ -90,8 +90,8 @@ endef
#
# gb_UITest_add_modules directory module(s)
define gb_UITest_add_modules
-$(call gb_UITest_get_target,$(1)) : PYPATH := $$(PYPATH)$$(gb_CLASSPATHSEP)$(2)
-$(call gb_UITest_get_target,$(1)) : MODULES += $(3)
+$(call gb_UITest_get_target,$(1)) : PYPATH := $$(PYPATH)$$(gb_CLASSPATHSEP)$(strip $(2))/$(strip $(3))
+$(call gb_UITest_get_target,$(1)) : MODULES += $(strip $(2))/$(strip $(3))
endef
More information about the Libreoffice-commits
mailing list