summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 12:15:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 12:15:09 +0000
commit765a0d53a1c27df63c67817aa9899b8bf216c4da (patch)
tree7b9f9ef112da6b632c2510a7d277fc98bcf82ceb /test/ruby/envutil.rb
parentac65855df71c614cf4c555fc6bd70cfadab18587 (diff)
envutil.rb: rubybin: keyword
* test/ruby/envutil.rb (invoke_ruby): add rubybin: keyword option to specify the command to run scripts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index f7c1416e42..892ca3c75c 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -33,6 +33,7 @@ module EnvUtil
def invoke_ruby(args, stdin_data = "", capture_stdout = false, capture_stderr = false,
encoding: nil, timeout: 10, reprieve: 1,
stdout_filter: nil, stderr_filter: nil,
+ rubybin: EnvUtil.rubybin,
**opt)
in_c, in_p = IO.pipe
out_p, out_c = IO.pipe if capture_stdout
@@ -51,7 +52,7 @@ module EnvUtil
child_env.update(args.shift)
end
args = [args] if args.kind_of?(String)
- pid = spawn(child_env, EnvUtil.rubybin, *args, **opt)
+ pid = spawn(child_env, rubybin, *args, **opt)
in_c.close
out_c.close if capture_stdout
err_c.close if capture_stderr && capture_stderr != :merge_to_stdout