fix bug in reporting. 39/43539/1
authorliyin <liyin11@huawei.com>
Fri, 29 Sep 2017 03:47:46 +0000 (11:47 +0800)
committerliyin <liyin11@huawei.com>
Fri, 29 Sep 2017 03:48:37 +0000 (11:48 +0800)
JIRA: BOTTLENECK-206

Bug fix in reporting.

Change-Id: I2d2269e9d35b279b3aa3b08d497d6e6bda2a5704
Signed-off-by: liyin <liyin11@huawei.com>
testsuites/run_testsuite.py

index 8c8f699..74ae4e1 100644 (file)
@@ -107,7 +107,10 @@ def testsuite_run(test_level, test_name, REPORT="False"):
             conf_parser.Parser.testcase_out_dir(testcase)
         start_date = datetime.datetime.now()
         docker_env_prepare(config[testcase])
-        posca_testcase_run(tester_parser[0], testcase, config[testcase])
+        try:
+            posca_testcase_run(tester_parser[0], testcase, config[testcase])
+        except Exception, e:
+            LOG.warning('e.message:\t', e.message)
         stop_date = datetime.datetime.now()
         LOG.info("End of %s testcase in POSCA testsuite", testcase)
         criteria = "FAIL"