version = functest_utils.get_version(logger)\r
build_tag = functest_utils.get_build_tag(logger)\r
\r
- logger.info("Pushing COPPER results: TEST_DB_URL=%(db)s pod_name=%(pod)s "\r
- "version=%(v)s scenario=%(s)s criteria=%(c)s details=%(d)s" % {\r
- 'db': TEST_DB_URL,\r
- 'pod': pod_name,\r
- 'v': version,\r
- 's': scenario,\r
- 'c': details['status'],\r
- 'b': build_tag,\r
- 'd': details,\r
- })\r
- functest_utils.push_results_to_db("COPPER",\r
- "COPPER-notification",\r
- logger,\r
- start_time,\r
- stop_time,\r
- details['status'],\r
- details)\r
+ try:\r
+ logger.info("Pushing COPPER results: TEST_DB_URL=%(db)s "\r
+ "pod_name=%(pod)s version=%(v)s scenario=%(s)s "\r
+ "criteria=%(c)s details=%(d)s" % {\r
+ 'db': TEST_DB_URL,\r
+ 'pod': pod_name,\r
+ 'v': version,\r
+ 's': scenario,\r
+ 'c': details['status'],\r
+ 'b': build_tag,\r
+ 'd': details,\r
+ })\r
+ functest_utils.push_results_to_db("copper",\r
+ "copper-notification",\r
+ logger,\r
+ start_time,\r
+ stop_time,\r
+ details['status'],\r
+ details)\r
+ except:\r
+ logger.error("Error pushing results into Database '%s'"\r
+ % sys.exc_info()[0])\r
+\r
if ret_val != 0:\r
sys.exit(-1)\r
\r