From 939dc4c572d1f0b0631ddce757637fa1f2611cf9 Mon Sep 17 00:00:00 2001 From: Jessica Xie Date: Mon, 5 Apr 2021 12:04:17 -0400 Subject: [PATCH] Handle tests generated with eval in error file path --- ruby/lib/ci/queue/version.rb | 2 +- ruby/lib/minitest/queue/test_data.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ruby/lib/ci/queue/version.rb b/ruby/lib/ci/queue/version.rb index 5f27e2e9..c2be3b7d 100644 --- a/ruby/lib/ci/queue/version.rb +++ b/ruby/lib/ci/queue/version.rb @@ -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 diff --git a/ruby/lib/minitest/queue/test_data.rb b/ruby/lib/minitest/queue/test_data.rb index 6c0dd6a1..6f9454b7 100644 --- a/ruby/lib/minitest/queue/test_data.rb +++ b/ruby/lib/minitest/queue/test_data.rb @@ -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