From 544d2575fcdf23ae63cd25aa03fce10c28b259f2 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 10 May 2021 21:22:42 -0700 Subject: [PATCH] Skip tests not working in mswin GitHub Actions --- tool/test/webrick/test_filehandler.rb | 1 + tool/test/webrick/test_httpproxy.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/tool/test/webrick/test_filehandler.rb b/tool/test/webrick/test_filehandler.rb index 998e03f690..146d8ce792 100644 --- a/tool/test/webrick/test_filehandler.rb +++ b/tool/test/webrick/test_filehandler.rb @@ -247,6 +247,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase def test_short_filename return if File.executable?(__FILE__) # skip on strange file system + return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning config = { :CGIInterpreter => TestWEBrick::RubyBin, diff --git a/tool/test/webrick/test_httpproxy.rb b/tool/test/webrick/test_httpproxy.rb index 1c2f2fce52..66dae6f6f6 100644 --- a/tool/test/webrick/test_httpproxy.rb +++ b/tool/test/webrick/test_httpproxy.rb @@ -323,6 +323,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase end if defined?(OpenSSL::SSL) def test_upstream_proxy + return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning # Testing GET or POST through the upstream proxy server # Note that the upstream proxy server works as the origin server. # +------+