Skip to content

Commit

Permalink
Suppress stderr when fetching ruby_path (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun authored Nov 14, 2024
1 parent a892dad commit 3a18f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_benchmarks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
# like `bundle install` in a child process will not use the Ruby being benchmarked.
# It overrides PATH to guarantee the commands of the benchmarked Ruby will be used.
env = {}
ruby_path = `#{ruby.shelljoin} -e 'print RbConfig.ruby'`
ruby_path = `#{ruby.shelljoin} -e 'print RbConfig.ruby' 2> #{File::NULL}`
if ruby_path != RbConfig.ruby
env["PATH"] = "#{File.dirname(ruby_path)}:#{ENV["PATH"]}"

Expand Down

0 comments on commit 3a18f1b

Please sign in to comment.