summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-12 09:01:00 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-14 22:51:57 +0900
commit7bd417adb22c5af8ce635b81de07c6565208de87 (patch)
treeedc92aefb135811f377253e3a24d060516cd98f8
parent060f31bb132afe20547a61d490d86fa509c59f26 (diff)
downloadbundler-7bd417adb22c5af8ce635b81de07c6565208de87.tar.gz
Added example filter for Linux of GitHub Actions.
-rw-r--r--spec/commands/exec_spec.rb2
-rw-r--r--spec/spec_helper.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 8ad5a3c125..67c2ce6268 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -55,7 +55,7 @@ RSpec.describe "bundle exec" do
expect(out).to eq("hi")
end
- it "respects custom process title when loading through ruby" do
+ it "respects custom process title when loading through ruby", :github_action_linux do
script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~RUBY
Process.setproctitle("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16")
puts `ps -eo args | grep [1]-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16`
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 6810fcf3ce..0a957dd0be 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -72,6 +72,7 @@ RSpec.configure do |config|
config.filter_run_excluding :bundler => RequirementChecker.against(Bundler::VERSION.split(".")[0])
config.filter_run_excluding :ruby_repo => !(ENV["BUNDLE_RUBY"] && ENV["BUNDLE_GEM"]).nil?
config.filter_run_excluding :no_color_tty => Gem.win_platform? || !!ENV["GITHUB_ACTION"]
+ config.filter_run_excluding :github_action_linux => !!ENV["GITHUB_ACTION"] && (ENV["RUNNER_OS"] == "Linux")
config.filter_run_when_matching :focus unless ENV["CI"]