Skip to content

Commit

Permalink
Merge pull request #167 from Shopify/handle_eval
Browse files Browse the repository at this point in the history
Handle tests generated with eval in error file path
  • Loading branch information
Jessica Xie authored Apr 5, 2021
2 parents 7e362b0 + 939dc4c commit 567f54f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ruby/lib/ci/queue/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module CI
module Queue
VERSION = '0.20.8'
VERSION = '0.20.9'
DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
end
Expand Down
6 changes: 5 additions & 1 deletion ruby/lib/minitest/queue/test_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def error_file_path
return nil unless @test.failure

path = error_location(@test.failure).first
relative_path_for(path)
begin
relative_path_for(path)
rescue ArgumentError
path # e.g. "(eval)" etc.
end
end

def error_file_number
Expand Down

0 comments on commit 567f54f

Please sign in to comment.