diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-22 14:02:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-22 14:10:16 +0200 |
commit | 816e5063b888db93eaf4a3240823399e7a221279 (patch) | |
tree | 95f90a0c04668fb14b613de54ae751679ff1b848 /unotest | |
parent | deb9dd0648abe81cb8c9b0696c71ebd823c0a549 (diff) |
framework, unotest: do not override UserInstallation from environment
The PythonTest_dbaccess_python may fail in incremental builds because of
stale JVM path in workdir/unittest/user/config/javasettings_Linux_X86_64.xml
so it's better to use the fresh UserInstallation that is already passed
in from PythonTest.mk. To make that work, tolerate non-existing path in
SubstitutePathVariables::SetPredefinedPathVariables() at least when
running in the build environment, which is probably better than
effectively running with "/" as UserInstallation anyway...
This partially reverts commit 6dbb6275ebd1a4299099c3b6bc82ec4ee0e1fb86.
Change-Id: I4d42d53c049056590662828360c4ce5a29af0f4b
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/python/org/libreoffice/unotest.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/unotest/source/python/org/libreoffice/unotest.py b/unotest/source/python/org/libreoffice/unotest.py index 1991b79d29da..4ae21c1f7ac8 100644 --- a/unotest/source/python/org/libreoffice/unotest.py +++ b/unotest/source/python/org/libreoffice/unotest.py @@ -174,15 +174,6 @@ class UnoInProcess: def getDoc(self): return self.xDoc def setUp(self): - # set UserInstallation to user profile dir in test/user-template: - path = os.getenv("WORKDIR") - if os.name == "nt": - # do not quote drive letter - it must be "X:" - url = "file:///" + path - else: - url = "file://" + quote(path) - os.putenv("UserInstallation", url + "/unittest") - self.xContext = pyuno.getComponentContext() pyuno.private_initTestEnvironment() def openEmptyWriterDoc(self): |