From abd189f31cb7d94c628d538dd52f126624efe20c Mon Sep 17 00:00:00 2001 From: bspriggs Date: Sun, 13 May 2018 15:42:30 -0700 Subject: [PATCH] Generate Run ID if not present for run --- src/run_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run_generator.py b/src/run_generator.py index 73d66cf..7772d23 100644 --- a/src/run_generator.py +++ b/src/run_generator.py @@ -1,4 +1,4 @@ -from src.validate import TemplateSchema, RunConfigSchema +from src.validate import TemplateSchema, RunConfigSchema, random_run_id class RunGenerator: @@ -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'),