From 79d49d1a7004a1e461e9b4f239eed1d201ed9d51 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 19 Oct 2016 05:22:51 +0000 Subject: basictest: --run-opt option * basictest/runner.rb: do not clobber the option by --run-opt with RUBYOPT. reported by Allen Hewes . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- basictest/runner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basictest') diff --git a/basictest/runner.rb b/basictest/runner.rb index 0330b6d506..0f398e7acc 100755 --- a/basictest/runner.rb +++ b/basictest/runner.rb @@ -17,8 +17,8 @@ $stderr.reopen($stdout) error = '' srcdir = File.expand_path('..', File.dirname(__FILE__)) -if opt = ENV["RUBYOPT"] - ENV["RUBYOPT"] = opt + " -W1" +if env = ENV["RUBYOPT"] + ENV["RUBYOPT"] = env + " -W1" end `#{ruby} #{opt} -W1 #{srcdir}/basictest/test.rb #{ARGV.join(' ')}`.each_line do |line| if line =~ /^end of test/ -- cgit v1.2.3