diff --git a/test/framework/options.py b/test/framework/options.py index 3578106483..4b007a2704 100644 --- a/test/framework/options.py +++ b/test/framework/options.py @@ -673,9 +673,9 @@ def test__list_toolchains(self): ] self.eb_main(args, logfile=dummylogfn, raise_error=True) - info_msg = r"INFO List of known toolchains \(toolchainname: module\[,module\.\.\.\]\):" + regex = re.compile(r"INFO List of known toolchains \(toolchain name: module\[, module, \.\.\.\]\):") logtxt = read_file(self.logfile) - self.assertTrue(re.search(info_msg, logtxt), "Info message with list of known toolchains found in: %s" % logtxt) + self.assertTrue(regex.search(logtxt), "Pattern '%s' should be found in: %s" % (regex.pattern, logtxt)) # toolchain elements should be in alphabetical order tcs = { 'system': [],