Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
f65ff825
Commit
f65ff825
authored
Oct 15, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Slaprunner unittest
parent
c3ad77a6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
29 deletions
+193
-29
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+190
-26
slapos/runner/utils.py
slapos/runner/utils.py
+3
-3
No files found.
slapos/runner/runnertest.py
View file @
f65ff825
This diff is collapsed.
Click to expand it.
slapos/runner/utils.py
View file @
f65ff825
...
@@ -13,7 +13,7 @@ import os
...
@@ -13,7 +13,7 @@ import os
import
subprocess
import
subprocess
import
time
import
time
import
urllib
import
urllib
import
xml.
dom
from
xml.dom
import
mini
dom
import
xml_marshaller
import
xml_marshaller
from
flask
import
jsonify
from
flask
import
jsonify
...
@@ -804,8 +804,8 @@ def readParameters(path):
...
@@ -804,8 +804,8 @@ def readParameters(path):
a dictionnary of instance parameters."""
a dictionnary of instance parameters."""
if os.path.exists(path):
if os.path.exists(path):
try:
try:
xmldoc =
xml.dom.
minidom.parse(path)
xmldoc = minidom.parse(path)
obj = {}
obj
ect
= {}
for elt in xmldoc.childNodes:
for elt in xmldoc.childNodes:
sub_obj = {}
sub_obj = {}
for subnode in elt.childNodes:
for subnode in elt.childNodes:
...
...
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