diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-12 09:01:00 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-12 12:14:39 +0900 |
commit | ed9d59afc811ff738c4218a2edf71b3c9c49e370 (patch) | |
tree | c8c30b3ea7953eaf897357733d7ecd2d887ca9a9 /spec | |
parent | 8a8f680f017d0d4c410f17ec74e06d0436dcbe83 (diff) | |
download | ruby-ed9d59afc811ff738c4218a2edf71b3c9c49e370.tar.gz |
Added example filter for Linux of GitHub Actions.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/commands/exec_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/spec_helper.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb index dd46f6a016..44ab3f6016 100644 --- a/spec/bundler/commands/exec_spec.rb +++ b/spec/bundler/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/bundler/spec_helper.rb b/spec/bundler/spec_helper.rb index 2482fc03a3..182472ae34 100644 --- a/spec/bundler/spec_helper.rb +++ b/spec/bundler/spec_helper.rb @@ -74,6 +74,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"] |