Skip to content

Commit 3ce5643

Browse files
committed
Make it easy to skip MRI tests using subprocesses
1 parent 46135da commit 3ce5643

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/mri/tests/lib/core_assertions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def message msg = nil, ending = nil, &default
3131
end
3232

3333
module CoreAssertions
34-
ALLOW_SUBPROCESSES = true # !defined?(::TruffleRuby)
34+
ALLOW_SUBPROCESSES = ENV['MRI_TEST_SUBPROCESSES'] != 'false' # !defined?(::TruffleRuby)
3535

3636
require_relative 'envutil'
3737
require 'pp'

tool/jt.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ def help
823823
jt test mri test/mri/tests/test_find.rb [-- <MRI runner options>]
824824
run tests in given file, -n option of the runner can be used to further
825825
limit executed test methods
826+
MRI_TEST_SUBPROCESSES=false skip MRI tests using subprocesses
826827
jt retag FILE Remove MRI excludes and re-add as necessary for MRI tests
827828
---
828829
jt test basictest run MRI's basictest suite

0 commit comments

Comments
 (0)