Log info about timeout in RegEx

This commit is contained in:
Sebastian Serth
2021-01-11 18:18:13 +01:00
parent 4d270d8fc8
commit b1f21509ae
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class PyLintAdapter < TestingFrameworkAdapter
end || []
end
rescue Timeout::Error
Raven.capture_message({stdout: output[:stdout], regex: ASSERTION_ERROR_REGEXP}.to_json)
assertion_error_matches = []
end
concatenated_errors = assertion_error_matches.map { |result| "#{result[:name]}: #{result[:result]}" }.flatten