mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
envutil.rb: fix disabling gems in assert_separately
* test/ruby/envutil.rb (assert_separately): fix the position of --disable=gems option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ad367a256e
commit
f8978ba3f9
1 changed files with 2 additions and 2 deletions
|
@ -297,8 +297,8 @@ module Test
|
|||
@@stop_auto_run = true
|
||||
end
|
||||
eom
|
||||
args = ["--disable=gems", *args]
|
||||
args.insert((Hash === args.first ? 1 : 0), *$:.map {|l| "-I#{l}"})
|
||||
args = args.dup
|
||||
args.insert((Hash === args.first ? 1 : 0), "--disable=gems", *$:.map {|l| "-I#{l}"})
|
||||
stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, **opt)
|
||||
abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig))
|
||||
assert(!abort, FailDesc[status, stderr])
|
||||
|
|
Loading…
Reference in a new issue