summaryrefslogtreecommitdiffstats
path: root/utils/parser.py
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-08-01 10:48:21 +0000
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-08-02 06:30:54 +0000
commitc94d37af489daf7bd0dde54129ac9edc63847cd0 (patch)
tree3cd972f0a0e3ba9e81cd282e8b0887df0aee9195 /utils/parser.py
parent73ec2fc6990a2a919a16c85e852fe42e9f230f4c (diff)
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 <liyin11@huawei.com> (cherry picked from commit 904396874f08208bde66c953fcfe31906a6588d1)
Diffstat (limited to 'utils/parser.py')
-rw-r--r--utils/parser.py10
1 files changed, 8 insertions, 2 deletions
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