diff --git a/microsoft/testsuites/core/azure_image_standard.py b/microsoft/testsuites/core/azure_image_standard.py index 5a211e8ab5..a4883a792c 100644 --- a/microsoft/testsuites/core/azure_image_standard.py +++ b/microsoft/testsuites/core/azure_image_standard.py @@ -83,10 +83,8 @@ class AzureImageStandard(TestSuite): # [WARNING]: Running ['tdnf', '-y', 'upgrade'] resulted in stderr output. # cloud-init[958]: photon.py[ERROR]: Error while installing packages _ERROR_WARNING_pattern: List[Pattern[str]] = [ - re.compile(r"^(.*\[ERROR\]*)$", re.MULTILINE), - re.compile(r"^(.*ERROR:*)$", re.MULTILINE), - re.compile(r"^(.*\[WARNING\]*)$", re.MULTILINE), - re.compile(r"^(.*WARNING:*)$", re.MULTILINE), + re.compile(r"^(.*\[ERROR\]:.*)", re.MULTILINE), + re.compile(r"^(.*\[WARNING\]:.*)", re.MULTILINE), ] # ignorable failure, error, warnings pattern which got confirmed