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
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
Xiaowu Zhang
slapos.toolbox
Commits
87368ba0
Commit
87368ba0
authored
Dec 18, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ordered dictionary to preserve the order of test sections
parent
e38bab3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
slapos/agent/agent.py
slapos/agent/agent.py
+4
-2
No files found.
slapos/agent/agent.py
View file @
87368ba0
import
ConfigParser
import
ConfigParser
import
argparse
import
argparse
import
collections
import
datetime
import
datetime
import
httplib
import
httplib
import
json
import
json
...
@@ -301,9 +302,10 @@ class SoftwareReleaseTester(RPCRetry):
...
@@ -301,9 +302,10 @@ class SoftwareReleaseTester(RPCRetry):
stepfunc
(
self
)
stepfunc
(
self
)
return
self
.
deadline
return
self
.
deadline
class
TestMap
(
object
):
class
TestMap
(
object
):
def
__init__
(
self
,
test_dict
):
def
__init__
(
self
,
test_dict
):
self
.
test_map_dict
=
{}
self
.
test_map_dict
=
collections
.
OrderedDict
()
for
key
in
test_dict
:
for
key
in
test_dict
:
target_computer
=
test_dict
[
key
][
"target_computer"
]
target_computer
=
test_dict
[
key
][
"target_computer"
]
if
target_computer
not
in
self
.
test_map_dict
:
if
target_computer
not
in
self
.
test_map_dict
:
...
@@ -394,7 +396,7 @@ def main():
...
@@ -394,7 +396,7 @@ def main():
logger
.
addHandler
(
handler
)
logger
.
addHandler
(
handler
)
log_file
=
open
(
log
)
log_file
=
open
(
log
)
log_file
.
seek
(
0
,
2
)
log_file
.
seek
(
0
,
2
)
section_dict
=
{}
section_dict
=
collections
.
OrderedDict
()
configuration
=
ConfigParser
.
SafeConfigParser
()
configuration
=
ConfigParser
.
SafeConfigParser
()
configuration
.
readfp
(
args
.
configuration_file
)
configuration
.
readfp
(
args
.
configuration_file
)
for
section
in
configuration
.
sections
():
for
section
in
configuration
.
sections
():
...
...
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