aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-03-21 13:03:58 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-21 13:03:58 +0000
commite4e3691bf1820193c29aaa6709cf81bf1e2e32cc (patch)
treed954782ef2ac1bef1f234eb612288fc29c30a8ea /functest/utils
parent6fbd9fc1152d45e1b3a2d4cf7658c8f674a23961 (diff)
parentafc59e6af25a60c68a3095365c780974721f1364 (diff)
Merge "bug fix: version not retrieved on weekly jobs"
Diffstat (limited to 'functest/utils')
-rw-r--r--functest/utils/functest_utils.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py
index 9e13ffe9..7cc5029d 100644
--- a/functest/utils/functest_utils.py
+++ b/functest/utils/functest_utils.py
@@ -207,13 +207,7 @@ def push_results_to_db(project, case_name,
except KeyError as e:
logger.error("Please set env var: " + str(e))
return False
- rule = "daily-(.+?)-[0-9]*"
- m = re.search(rule, build_tag)
- if m:
- version = m.group(1)
- else:
- logger.error("Please fix BUILD_TAG env var: " + build_tag)
- return False
+ version = get_version()
test_start = dt.fromtimestamp(start_date).strftime('%Y-%m-%d %H:%M:%S')
test_stop = dt.fromtimestamp(stop_date).strftime('%Y-%m-%d %H:%M:%S')