summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-08-01 10:48:21 +0000
committerAce Lee <liyin11@huawei.com>2017-08-02 00:56:44 +0000
commit904396874f08208bde66c953fcfe31906a6588d1 (patch)
tree68fda6c9f8e015b49a2438477d841b2919b6afab /utils
parent0b47f013a0af6549cee590762bbd979729de0ead (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>
Diffstat (limited to 'utils')
-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