Commit b8e5e902 authored by Rafael Monnerat's avatar Rafael Monnerat

Propate environment varialbled for the tests

parent f3e18116
...@@ -60,6 +60,10 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None): ...@@ -60,6 +60,10 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
hostname = config.get("server:main", "host") hostname = config.get("server:main", "host")
openoffice_port = int(config.get("app:main", "openoffice_port")) openoffice_port = int(config.get("app:main", "openoffice_port"))
office_binary_path = config.get("app:main", "office_binary_path") office_binary_path = config.get("app:main", "office_binary_path")
environment_dict = {}
for item in config.options("app:main"):
if item.startswitc("env-"):
environment_dict[item[4:].upper()] = config.get("app:main", item)
tmp_dir = path.join(working_path, 'tmp') tmp_dir = path.join(working_path, 'tmp')
check_folder(working_path, tmp_dir) check_folder(working_path, tmp_dir)
if not environ.get('uno_path'): if not environ.get('uno_path'):
...@@ -85,7 +89,8 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None): ...@@ -85,7 +89,8 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
working_path, working_path,
office_binary_path, office_binary_path,
uno_path, uno_path,
default_language) default_language,
environment_dict)
openoffice.start() openoffice.start()
openoffice.acquire() openoffice.acquire()
hostname, port = openoffice.getAddress() hostname, port = openoffice.getAddress()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment