Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
cloudooo
Commits
b8e5e902
Commit
b8e5e902
authored
Jul 11, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propate environment varialbled for the tests
parent
f3e18116
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cloudooo/tests/handlerTestCase.py
cloudooo/tests/handlerTestCase.py
+6
-1
No files found.
cloudooo/tests/handlerTestCase.py
View file @
b8e5e902
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment