diff options
author | xudan <xudan16@huawei.com> | 2017-03-28 06:50:05 +0000 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-03-30 02:42:17 +0000 |
commit | 0d1e35bfb9069c701dbf24c3daaa618bc3ad108b (patch) | |
tree | 7e9648ea881baeae9905a5da213a3d6e0fc3aae4 /dovetail/report.py | |
parent | e0f4b3a6f279e8e3f4bc05307d60d6983cc60735 (diff) |
dovetail tool: set a unique build_tag for each DoveTail test
JIRA: DOVETAIL-379
1. create a uuid for each test, and set build_tag=daily-master-<uuid>
2. the reason it starts with "daily_master" is that it's the requirement of
functest when push data to DB.
Change-Id: I9a59d5695a9f0d83bf4330379f1949a2a04f876c
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/report.py')
-rw-r--r-- | dovetail/report.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dovetail/report.py b/dovetail/report.py index f2210cb7..deabbdd2 100644 --- a/dovetail/report.py +++ b/dovetail/report.py @@ -13,7 +13,6 @@ import urllib2 import re import os import datetime -import uuid from pbr import version @@ -47,7 +46,7 @@ class Report(object): report_obj['testsuite'] = testsuite_yaml['name'] # TO DO: once dashboard url settled, adjust accordingly report_obj['dashboard'] = None - report_obj['validation_ID'] = str(uuid.uuid4()) + report_obj['build_tag'] = dt_cfg.dovetail_config['build_tag'] report_obj['upload_date'] =\ datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC") report_obj['duration'] = duration @@ -89,7 +88,7 @@ class Report(object): report_txt += 'Version: %s\n' % report_data['version'] report_txt += 'TestSuite: %s\n' % report_data['testsuite'] report_txt += 'Result Dashboard: %s\n' % report_data['dashboard'] - report_txt += 'Validation ID: %s\n' % report_data['validation_ID'] + report_txt += 'Build Tag: %s\n' % report_data['build_tag'] report_txt += 'Upload Date: %s\n' % report_data['upload_date'] if report_data['duration'] == 0: report_txt += 'Duration: %s\n\n' % 'N/A' |