Gather all skipped tempest test cases 05/67105/4
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>
Mon, 25 Feb 2019 12:56:18 +0000 (14:56 +0200)
committerCedric Ollivier <cedric.ollivier@orange.com>
Wed, 27 Feb 2019 09:53:09 +0000 (09:53 +0000)
This patch applies a change to the regex responsible for
identifying Tempest test cases. With the current regex some
skipped test cases are erroneously ignored.

The condition has been updated in order to match both format of
skipped testcases ('skip:' and 'skip [xxx]:')

Change-Id: Ie7144b01e07cae92918eede0324f3f1f2582c4aa
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
functest/opnfv_tests/openstack/tempest/tempest.py

index 1ae37f9..597c711 100644 (file)
@@ -273,7 +273,7 @@ class TempestCommon(singlevm.VmReady2):
                                     output):
                 failed_testcases.append(match)
             skipped_testcases = []
-            for match in re.findall(r'.*\{\d{1,2}\} (.*?) \.{3} skip:',
+            for match in re.findall(r'.*\{\d{1,2}\} (.*?) \.{3} skip(?::| )',
                                     output):
                 skipped_testcases.append(match)