Skip to content

Commit

Permalink
Update test regex for 1.73
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 10, 2023
1 parent ca7f26b commit ed4c53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/opanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_output_panel(window, base_dir):
s.set('result_file_regex', '^[^:]+: (..[^:]*):([0-9]+): (.*)$')
else:
build_pattern = '^[ \\t]*-->[ \\t]*([^<\n]*):([0-9]+):([0-9]+)'
test_pattern = ', ([^,<\n]*\\.[A-z]{2}):([0-9]+)'
test_pattern = '(?:, |panicked at )([^,<\n]*\\.[A-z]{2}):([0-9]+)'
pattern = '(?|%s|%s)' % (build_pattern, test_pattern)
s.set('result_file_regex', pattern)
# Used for resolving relative paths.
Expand Down Expand Up @@ -76,7 +76,7 @@ def on_data(self, proc, data):
# Re-fetch the data to handle things like \t expansion.
appended = self.output_view.substr(
sublime.Region(region_start, self.output_view.size()))
m = re.search(r', ([^,<\n]*\.[A-z]{2}):([0-9]+):([0-9]+)',
m = re.search(r'(?:, |panicked at )([^,<\n]*\.[A-z]{2}):([0-9]+):([0-9]+)',
appended)
if m:
path = os.path.join(self.base_path, m.group(1))
Expand Down

0 comments on commit ed4c53b

Please sign in to comment.