aboutsummaryrefslogtreecommitdiffstats
path: root/basictest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-19 05:22:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-19 05:22:51 +0000
commit79d800ad9c5c95f189fffd227ab6037524371ce4 (patch)
treebe6723c913c3b3abe0ed13c97218ea412d7e1715 /basictest
parentd4804fc039a79113ad6ca1c1d10fc8648ea000ca (diff)
downloadruby-79d800ad9c5c95f189fffd227ab6037524371ce4.tar.gz
basictest: --run-opt option
* basictest/runner.rb: do not clobber the option by --run-opt with RUBYOPT. reported by Allen Hewes <rallenh AT hotmail.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'basictest')
-rwxr-xr-xbasictest/runner.rb4
1 files changed, 2 insertions, 2 deletions
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/