From ba20c2b8cac16588d6afaa5dad9d0f01be95f9fd Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 3 Jan 2023 21:32:43 +0100 Subject: [PATCH] fix test__list_toolchains --- test/framework/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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': [],