diff options
author | Yu Yang (Gabriel) <Gabriel.yuyang@huawei.com> | 2017-08-02 06:30:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-02 06:30:24 +0000 |
commit | 4e50c4bbfb853a197c0e305b32292585bb507c16 (patch) | |
tree | abc9d864e3bedbfb431d026407b02a9b326f5e34 /utils | |
parent | fd66a0466e931e28ebd1f0925e9c9a0c28912a02 (diff) | |
parent | 904396874f08208bde66c953fcfe31906a6588d1 (diff) |
Merge "Bottlenecks testcase rebuild"
Diffstat (limited to 'utils')
-rw-r--r-- | utils/parser.py | 10 |
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 |