[yocto] [qa-tools][PATCH 1/3] testopia_update/product: Fix regex to match test case id

jose.perez.carranza at linux.intel.com jose.perez.carranza at linux.intel.com
Wed Feb 22 09:12:40 PST 2017


From: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>

Add space to the regex to match all the digits of the test case id

Signed-off-by: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>
---
 testopia_update/product/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testopia_update/product/__init__.py b/testopia_update/product/__init__.py
index 689d004..d7cb984 100644
--- a/testopia_update/product/__init__.py
+++ b/testopia_update/product/__init__.py
@@ -147,7 +147,7 @@ class Product(object):
         return new_test_run
 
     def parse_results_log(self, log_file):
-        regex = "^.*RESULTS.*(?P<case_id>\d+): (?P<status>PASSED|FAILED)$"
+        regex = "^.*RESULTS.* (?P<case_id>\d+): (?P<status>PASSED|FAILED)$"
         if hasattr(self, 'results_regex'):
             regex = getattr(self, 'results_regex')
 
-- 
2.1.4




More information about the yocto mailing list