From 904396874f08208bde66c953fcfe31906a6588d1 Mon Sep 17 00:00:00 2001 From: Ace Lee Date: Tue, 1 Aug 2017 10:48:21 +0000 Subject: Bottlenecks testcase rebuild JIRA: BOTTLENECK-175 After this patch, Bottlenecks will try to find the stress of the openstack system. we try to create 20 stacks one time. And 20 stacks the other time. we will try to find if openstack will pass threshhold twice. This patch only affact latest version Change-Id: I6146cf5c6fe0ac4968337cc36e07f715b64191d0 Signed-off-by: Ace Lee --- utils/parser.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/parser.py b/utils/parser.py index 65072c06..f130de44 100644 --- a/utils/parser.py +++ b/utils/parser.py @@ -83,8 +83,14 @@ class Parser(): @classmethod def testcase_out_dir(cls, testcase): - file_time = time.strftime('%H_%M', time.localtime(time.time())) - out_name = cls.bottlenecks_config["log_dir"] + testcase + file_time + suffix_name = os.getenv("SUFFIX_STRING") + if suffix_name is None: + file_suffix = time.strftime('%H_%M', time.localtime(time.time())) + else: + file_suffix = suffix_name + suffix_name = str(suffix_name) + suffix_name = "_" + suffix_name + out_name = cls.bottlenecks_config["log_dir"] + testcase + file_suffix outfile_name = out_name + ".out" return outfile_name -- cgit 1.2.3-korg