summaryrefslogtreecommitdiff
path: root/tool/test-bundled-gems.rb
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2022-11-23 13:32:27 +0900
committernagachika <nagachika@ruby-lang.org>2022-11-23 13:32:27 +0900
commit9ca4b96f9e2a1ef0f6000f0a994bc76f7f03a86a (patch)
tree33f7b733e456fee3accc410fe4ef1365f503a141 /tool/test-bundled-gems.rb
parent16ea2213295137bb25f10225408c54de452a507b (diff)
disable remote tests in debug.gem on macOS.
Diffstat (limited to 'tool/test-bundled-gems.rb')
-rw-r--r--tool/test-bundled-gems.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb
index 12358b69cc..ccf9d452ce 100644
--- a/tool/test-bundled-gems.rb
+++ b/tool/test-bundled-gems.rb
@@ -25,6 +25,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
puts "#{github_actions ? "##[group]" : "\n"}Testing the #{gem} gem"
test_command = "#{ruby} -C #{gem_dir}/src/#{gem} #{rake} test"
+ envs = {}
first_timeout = 600 # 10min
toplib = gem
@@ -46,6 +47,11 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
# environment variable.
load_path = true
+ # disable remote test in debug.gem on macOS
+ if /darwin/ =~ RUBY_PLATFORM
+ envs["RUBY_DEBUG_TEST_NO_REMOTE"] = "1"
+ end
+
when /\Anet-/
toplib = gem.tr("-", "/")
@@ -62,7 +68,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
print "[command]" if github_actions
puts test_command
- pid = Process.spawn(test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true)
+ pid = Process.spawn(envs, test_command, "#{/mingw|mswin/ =~ RUBY_PLATFORM ? 'new_' : ''}pgroup": true)
{nil => first_timeout, INT: 30, TERM: 10, KILL: nil}.each do |sig, sec|
if sig
puts "Sending #{sig} signal"