Skip to content

Commit

Permalink
Generate Run ID if not present for run
Browse files Browse the repository at this point in the history
  • Loading branch information
benjspriggs committed May 13, 2018
1 parent f2a2ce8 commit abd189f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run_generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.validate import TemplateSchema, RunConfigSchema
from src.validate import TemplateSchema, RunConfigSchema, random_run_id


class RunGenerator:
Expand Down Expand Up @@ -39,7 +39,7 @@ def __init__(self, TemplateData=None, RunList=None):
'injectors': injectors,
'java': template["java"],
'jar': template["jar"],
'tag': run["tag"],
'tag': run["tag"] if "tag" in run else random_run_id(),
'times': run["times"],
'props': props,
'props_file': template.get("props_file", 'specjbb2015.props'),
Expand Down

0 comments on commit abd189f

Please sign in to comment.