1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added example filter for Linux of GitHub Actions.

This commit is contained in:
Hiroshi SHIBATA 2019-08-12 09:01:00 +09:00
parent 8a8f680f01
commit ed9d59afc8
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 2 additions and 1 deletions

View file

@ -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`

View file

@ -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"]