We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d617bde commit 8a01c3dCopy full SHA for 8a01c3d
engine/src/flutter/testing/run_tests.py
@@ -131,7 +131,8 @@ def run_cmd( # pylint: disable=too-many-arguments
131
132
for forbidden_string in forbidden_output:
133
if forbidden_string in output:
134
- matches = [x.group(0) for x in re.findall(f'^.*{forbidden_string}.*$', output)]
+ forbidden_escaped = re.escape(forbidden_string)
135
+ matches = [x.group(0) for x in re.findall(f'^.*{forbidden_escaped}.*$', output)]
136
raise RuntimeError(
137
f'command "{command_string}" contained forbidden string "{forbidden_string}": {matches}'
138
)
0 commit comments