From ce075dfa190454f6f85920ad4ffe6928980868af Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 11 Aug 2022 16:14:05 -0700 Subject: [PATCH] [lldb] Fix output for unconditionally decorated tests A missing call to `format` resulted in curly braces getting printed in the reason a test was modified by a decorator. For example it would print "{} unconditionally" instead of "skipping unconditionally" for tests that were marked as such. --- lldb/packages/Python/lldbsuite/test/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index 6d6591c..477f4a7 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -248,7 +248,7 @@ def _decorateTest(mode, reason_str = "{} due to the following parameter(s): {}".format( mode_str, reason_str) else: - reason_str = "{} unconditionally" + reason_str = "{} unconditionally".format(mode_str) if bugnumber is not None and not six.callable(bugnumber): reason_str = reason_str + " [" + str(bugnumber) + "]" return reason_str -- 2.7.4