Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
load_leveller
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
Lukas Weber
load_leveller
Commits
13f89b74
Commit
13f89b74
authored
Aug 26, 2019
by
Lukas Weber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed up taskmaker a little
parent
d819dcba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
python/loadleveller/jobfile.py
python/loadleveller/jobfile.py
+1
-1
python/loadleveller/taskmaker.py
python/loadleveller/taskmaker.py
+2
-2
No files found.
python/loadleveller/jobfile.py
View file @
13f89b74
...
...
@@ -19,7 +19,7 @@ class JobFile:
raise
JobFileGenError
(
'Generation script "{}" had a non-zero return code. Treating as error.'
.
format
(
filename
))
try
:
parsed_job
=
yaml
.
safe_load
(
self
.
raw_jobfile
)
parsed_job
=
yaml
.
load
(
self
.
raw_jobfile
,
Loader
=
yaml
.
CSafeLoader
)
self
.
__dict__
.
update
(
parsed_job
)
except
Exception
as
e
:
raise
JobFileGenError
(
'Could not parse job generation script output: {}'
.
format
(
e
))
...
...
python/loadleveller/taskmaker.py
View file @
13f89b74
...
...
@@ -8,7 +8,7 @@ def _expand_path(path):
def
JobConfig
(
filename
):
with
open
(
_expand_path
(
filename
),
'r'
)
as
f
:
return
yaml
.
safe_load
(
f
)
return
yaml
.
load
(
f
,
Loader
=
yaml
.
CSafeLoader
)
class
TaskMaker
:
def
__init__
(
self
,
name
,
jobconfig
):
...
...
@@ -41,4 +41,4 @@ class TaskMaker:
task_dict
[
k
]
=
v
jobfile_dict
[
'tasks'
][
task_name
]
=
task_dict
print
(
yaml
.
dump
(
jobfile_dict
))
print
(
yaml
.
dump
(
jobfile_dict
,
Dumper
=
yaml
.
CSafeDumper
))
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