Precise tempest regex 29/54029/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 16 Mar 2018 22:26:24 +0000 (23:26 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 16 Mar 2018 22:26:24 +0000 (23:26 +0100)
It stops running neutron tests which matched the former regex.

Change-Id: Ica5a0d1f4858d01533156c98da87f9ed4662489f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/openstack/tempest/tempest.py
functest/tests/unit/openstack/tempest/test_tempest.py

index b3d091e..c11262e 100644 (file)
@@ -110,7 +110,7 @@ class TempestCommon(testcase.TestCase):
                                 % conf_utils.TEMPEST_CUSTOM)
         else:
             if self.mode == 'smoke':
-                testr_mode = r"'tempest\.(api|scenario).*\[.*\bsmoke\b.*\]'"
+                testr_mode = r"'^tempest\.(api|scenario).*\[.*\bsmoke\b.*\]$'"
             elif self.mode == 'full':
                 testr_mode = r"'^tempest\.'"
             else:
index 4368211..3a48513 100644 (file)
@@ -76,7 +76,7 @@ class OSTempestTesting(unittest.TestCase):
     def _test_gen_tl_mode_default(self, mode, mock_exec=None):
         self.tempestcommon.mode = mode
         if self.tempestcommon.mode == 'smoke':
-            testr_mode = r"'tempest\.(api|scenario).*\[.*\bsmoke\b.*\]'"
+            testr_mode = r"'^tempest\.(api|scenario).*\[.*\bsmoke\b.*\]$'"
         elif self.tempestcommon.mode == 'full':
             testr_mode = r"'^tempest\.'"
         else: