From: Morgan Richomme Date: Mon, 1 Feb 2016 08:51:28 +0000 (+0100) Subject: use scenario instead of git info in version field of the test results X-Git-Tag: brahmaputra.1.0~76 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=f1c40eaf6bfe51e71573428f913f17638fda5276;p=functest.git use scenario instead of git info in version field of the test results Change-Id: Ie80cc39e64d0fe70981623229560aa145df95c50 Signed-off-by: Morgan Richomme (cherry picked from commit 86728ad2ccfbea4a733b664aaafff0fcc22c4b0e) --- diff --git a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py index 0c68fd799..4b3779410 100644 --- a/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py +++ b/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py @@ -178,12 +178,12 @@ def main(): try: logger.debug("Push result into DB") # TODO check path result for the file - git_version = functest_utils.get_git_branch(REPO_PATH) + scenario = functest_utils.get_scenario(logger) pod_name = functest_utils.get_pod_name(logger) result = GetResult() functest_utils.push_results_to_db(TEST_DB, "ONOS", - logger, pod_name, git_version, + logger, pod_name, scenario, payload=result) except: logger.error("Error pushing results into Database") @@ -192,4 +192,4 @@ def main(): if __name__ == '__main__': - main() \ No newline at end of file + main()