Skip to content

Commit ed4c53b

Browse files
committed
Update test regex for 1.73
1 parent ca7f26b commit ed4c53b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/opanel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def create_output_panel(window, base_dir):
2121
s.set('result_file_regex', '^[^:]+: (..[^:]*):([0-9]+): (.*)$')
2222
else:
2323
build_pattern = '^[ \\t]*-->[ \\t]*([^<\n]*):([0-9]+):([0-9]+)'
24-
test_pattern = ', ([^,<\n]*\\.[A-z]{2}):([0-9]+)'
24+
test_pattern = '(?:, |panicked at )([^,<\n]*\\.[A-z]{2}):([0-9]+)'
2525
pattern = '(?|%s|%s)' % (build_pattern, test_pattern)
2626
s.set('result_file_regex', pattern)
2727
# Used for resolving relative paths.
@@ -76,7 +76,7 @@ def on_data(self, proc, data):
7676
# Re-fetch the data to handle things like \t expansion.
7777
appended = self.output_view.substr(
7878
sublime.Region(region_start, self.output_view.size()))
79-
m = re.search(r', ([^,<\n]*\.[A-z]{2}):([0-9]+):([0-9]+)',
79+
m = re.search(r'(?:, |panicked at )([^,<\n]*\.[A-z]{2}):([0-9]+):([0-9]+)',
8080
appended)
8181
if m:
8282
path = os.path.join(self.base_path, m.group(1))

0 commit comments

Comments
 (0)