Skip to content

Commit 3a18f1b

Browse files
authored
Suppress stderr when fetching ruby_path (#345)
1 parent a892dad commit 3a18f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run_benchmarks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
281281
# like `bundle install` in a child process will not use the Ruby being benchmarked.
282282
# It overrides PATH to guarantee the commands of the benchmarked Ruby will be used.
283283
env = {}
284-
ruby_path = `#{ruby.shelljoin} -e 'print RbConfig.ruby'`
284+
ruby_path = `#{ruby.shelljoin} -e 'print RbConfig.ruby' 2> #{File::NULL}`
285285
if ruby_path != RbConfig.ruby
286286
env["PATH"] = "#{File.dirname(ruby_path)}:#{ENV["PATH"]}"
287287

0 commit comments

Comments
 (0)