From 3a18f1b681605f46138c7f2c8589b6d26c7fe999 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 14 Nov 2024 09:07:41 -0800 Subject: [PATCH] Suppress stderr when fetching ruby_path (#345) --- run_benchmarks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_benchmarks.rb b/run_benchmarks.rb index 971319d..6bc748c 100755 --- a/run_benchmarks.rb +++ b/run_benchmarks.rb @@ -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"]}"