aboutsummaryrefslogtreecommitdiffstats
path: root/basictest/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'basictest/runner.rb')
-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/