Skip to content

Commit ed48426

Browse files
committed
tests: support :needs_arm, :needs_intel metadata
This adds the ability to specify tests that depend on a certain CPU architecture using `:needs_arm` or `:needs_intel`, similar to the existing `:needs_macos` and `:needs_linux` metadata for tests that depend on a certain OS.
1 parent 97cce36 commit ed48426

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Library/Homebrew/dev-cmd/tests.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ def run
134134
end
135135
# rubocop:enable Homebrew/MoveToExtendOS
136136

137+
bundle_args << "--tag" << "~needs_arm" unless Hardware::CPU.arm?
138+
139+
bundle_args << "--tag" << "~needs_intel" unless Hardware::CPU.intel?
140+
137141
bundle_args << "--tag" << "~needs_network" unless args.online?
138142
unless ENV["CI"]
139143
bundle_args << "--tag" << "~needs_ci" \

0 commit comments

Comments
 (0)