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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
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
Hide 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):
hostname
=
config
.
get
(
"server:main"
,
"host"
)
openoffice_port
=
int
(
config
.
get
(
"app:main"
,
"openoffice_port"
))
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'
)
check_folder
(
working_path
,
tmp_dir
)
if
not
environ
.
get
(
'uno_path'
):
...
...
@@ -85,7 +89,8 @@ def startFakeEnvironment(start_openoffice=True, conf_path=None):
working_path
,
office_binary_path
,
uno_path
,
default_language
)
default_language
,
environment_dict
)
openoffice
.
start
()
openoffice
.
acquire
()
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