Skip to content

brew tests failure: mismatched caveat message #15644

@osalbahr

Description

@osalbahr

brew doctor output

==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
Your system is ready to brew.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.0.26
ORIGIN: https://github.com/Homebrew/brew
HEAD: eff45ef570f265e226f14ce91da72d7a6e7d516a
Last commit: 10 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: cf3cb18796664100f963873bfd2d603d80491b74
Core tap last commit: 10 days ago
Core tap branch: master
Core tap JSON: 07 Jul 08:55 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.10 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.41.0 => /bin/git
Curl: 7.81.0 => /bin/curl
Kernel: Linux 6.3.8-200.fc38.x86_64 x86_64 GNU/Linux
OS: Unknown
Host glibc: 2.35
/usr/bin/gcc: 11.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A

What were you trying to do (and why)?

I was running brew tests. Was just curious what it does, after seeing it mentioned under How to Open a Pull Request - Create your pull request from a new branch. I also wanted to use it as a way to test if any changes I make in the near future introduce breakage.

What happened (include all command output)?

Also mentioned in #15635.

The message brew tests expected is in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/caveats.rb#L58.

[dracula@fedora ~]$ podman run -it homebrew/brew
linuxbrew@b5132d7be8bc:~$ brew tests
Warning: tests is a developer command, so Homebrew's
developer mode has been automatically turned on.
To turn developer mode off, run:
  brew developer off

Fetching gem metadata from https://rubygems.org/.......
Using concurrent-ruby 1.2.2
Using minitest 5.18.1
Using zeitwerk 2.6.8
Using ast 2.4.2
Using bundler 2.3.26
Using public_suffix 5.0.1
Using bindata 2.4.15
Using msgpack 1.7.1
Using diff-lcs 1.5.0
Using byebug 11.1.3
Using coderay 1.1.3
Using docile 1.4.0
Using regexp_parser 2.8.1
Using did_you_mean 1.6.3
Using json 2.6.3
Using hana 1.3.7
Using hpricot 0.8.6
Using uri_template 0.7.0
Using method_source 1.0.0
Using plist 3.7.0
Using rainbow 3.1.1
Using mustache 1.1.1
Using rdiscount 2.2.7.1
Using rack 3.0.8
Using rexml 3.2.5
Using sorbet-runtime 0.5.10461
Using parallel 1.23.0
Using ruby-progressbar 1.13.0
Using ruby-macho 3.0.0
Using simplecov-html 0.12.3
Using rspec-support 3.12.1
Fetching ruby-prof 1.4.3
Using unicode-display_width 2.4.2
Using simplecov_json_formatter 0.1.4
Fetching stackprof 0.2.25
Using warning 1.3.0
Using i18n 1.14.1
Using tzinfo 2.0.6
Using parser 3.2.2.1
Using addressable 2.8.4
Using bootsnap 1.16.0
Using elftools 1.2.0
Using ecma-re-validator 0.4.0
Using pry 0.14.2
Using ronn 0.7.3
Using rspec-sorbet 1.9.2
Using rspec-core 3.12.2
Using rspec-expectations 3.12.3
Using parallel_tests 3.13.0
Using rspec-mocks 3.12.5
Using simplecov 0.22.0
Using activesupport 6.1.7.3
Using patchelf 1.4.0
Using rubocop-ast 1.29.0
Using json_schemer 0.2.24
Using rspec-github 2.4.0
Using rspec-its 1.3.0
Using rspec-retry 0.6.2
Using rspec_junit_formatter 0.6.0
Using rspec 3.12.0
Using simplecov-cobertura 2.1.0
Using rubocop 1.50.2
Using rubocop-capybara 2.18.0
Using rubocop-performance 1.17.1
Using rubocop-rails 2.19.1
Using rubocop-sorbet 0.7.0
Using rubocop-rspec 2.20.0
Installing stackprof 0.2.25 with native extensions
Installing ruby-prof 1.4.3 with native extensions
Bundle complete! 36 Gemfile dependencies, 67 gems now installed.
Bundled gems are installed into `./.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle`
Randomized with seed 63640
4 processes for 353 specs, ~ 88 specs per process
.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.**.*...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Language::Python#site_packages gives a different location between PyPy and Python 2
     # Python is not installed.
     # ./test/language/python_spec.rb:14

  2) Language::Python#user_site_packages can determine user site packages location
     # Python is not installed.
     # ./test/language/python_spec.rb:27

  3) Language::Python#homebrew_site_packages returns the Homebrew site packages location
     # Python is not installed.
     # ./test/language/python_spec.rb:20

  4) Language::Python#major_minor_version returns a Version for Python 2
     # Python is not installed.
     # ./test/language/python_spec.rb:7

...............................................................***.***.**............................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Language::Python::Virtualenv::Virtualenv#pip_install accepts an array
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:44

  2) Language::Python::Virtualenv::Virtualenv#pip_install accepts a Resource
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:58

  3) Language::Python::Virtualenv::Virtualenv#pip_install accepts a string
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:24

  4) Language::Python::Virtualenv::Virtualenv#pip_install accepts a multi-line strings
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:32

  5) Language::Python::Virtualenv::Virtualenv#pip_install works without build isolation
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:70

  6) Language::Python::Virtualenv::Virtualenv#create creates a venv
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:17

  7) Language::Python::Virtualenv::Virtualenv#pip_install_and_link can link manpages
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:108

  8) Language::Python::Virtualenv::Virtualenv#pip_install_and_link can link scripts
     # Python is not installed.
     # ./test/language/python/virtualenv_spec.rb:85

.........
Failures:

  1) Caveats#caveats when f.keg_only is not nil when joining different caveat types together adds the correct amount of new lines to the output
     Failure/Error: expect(caveats).to include("if you don't want/need a background service")
     
       expected "something else\n\nformula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20230707-385-yizafq/prefix,\nbecause some reason.\n\nWarning: formula_name provides a service which can only be used on macOS or systemd!\nYou can manually execute the service instead with:\n  /tmp/homebrew-tests-20230707-385-yizafq/cellar/formula_name/1.0/bin/cmd\n" to include "if you don't want/need a background service"
       Diff:
       @@ -1,8 +1,15 @@
       -if you don't want/need a background service
       +something else
       +
       +formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20230707-385-yizafq/prefix,
       +because some reason.
       +
       +Warning: formula_name provides a service which can only be used on macOS or systemd!
       +You can manually execute the service instead with:
       +  /tmp/homebrew-tests-20230707-385-yizafq/cellar/formula_name/1.0/bin/cmd
       
     # ./test/caveats_spec.rb:289:in `block (5 levels) in <top (required)>'
.........................................................................................................
.....................................................



Took 84 seconds (1:24)
Tests Failed
Running `brew update` twice beforehand makes the output a lot more verbose:
[dracula@fedora ~]$ podman run -it
Error: requires at least 1 arg(s), only received 0
[dracula@fedora ~]$ podman run -it homebrew/brew
linuxbrew@a99445ca3c8f:~$ brew update
==> Homebrew collects anonymous analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations

Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
Already up-to-date.
linuxbrew@a99445ca3c8f:$ brew update
Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
Already up-to-date.
linuxbrew@a99445ca3c8f:
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have an unnecessary local Core tap!
This can cause problems installing up-to-date formulae.
Please remove it by running:
brew untap homebrew/core
linuxbrew@a99445ca3c8f:$ brew untap homebrew/core
Untapping homebrew/core...
Untapped 3 commands and 6721 formulae (7,096 files, 473.5MB).
linuxbrew@a99445ca3c8f:
$ brew doctor
Your system is ready to brew.
linuxbrew@a99445ca3c8f:$ brew update && brew update
Already up-to-date.
Already up-to-date.
linuxbrew@a99445ca3c8f:
$ brew doctor
Your system is ready to brew.
linuxbrew@a99445ca3c8f:~$ brew tests
Warning: tests is a developer command, so Homebrew's
developer mode has been automatically turned on.
To turn developer mode off, run:
brew developer off

Fetching gem metadata from https://rubygems.org/.......
Using concurrent-ruby 1.2.2
Using ast 2.4.2
Using bindata 2.4.15
Using minitest 5.18.1
Using zeitwerk 2.6.8
Using public_suffix 5.0.1
Using msgpack 1.7.1
Using coderay 1.1.3
Using byebug 11.1.3
Using bundler 2.3.26
Using docile 1.4.0
Using hpricot 0.8.6
Using json 2.6.3
Using did_you_mean 1.6.3
Using regexp_parser 2.8.1
Using hana 1.3.7
Fetching unf_ext 0.0.8.2
Using diff-lcs 1.5.0
Using method_source 1.0.0
Using mustache 1.1.1
Using parallel 1.23.0
Fetching racc 1.7.1
Using plist 3.7.0
Using rack 3.0.8
Using rainbow 3.1.1
Using rdiscount 2.2.7.1
Using rexml 3.2.5
Using rspec-support 3.12.1
Using sorbet-runtime 0.5.10461
Using ruby-progressbar 1.13.0
Using ruby-macho 3.0.0
Fetching ruby-prof 1.4.3
Using unicode-display_width 2.4.2
Using simplecov-html 0.12.3
Using simplecov_json_formatter 0.1.4
Fetching stackprof 0.2.25
Installing stackprof 0.2.25 with native extensions
Installing racc 1.7.1 with native extensions
Installing ruby-prof 1.4.3 with native extensions
Installing unf_ext 0.0.8.2 with native extensions
Using warning 1.3.0
Using i18n 1.14.1
Using tzinfo 2.0.6
Using elftools 1.2.0
Using addressable 2.8.4
Using bootsnap 1.16.0
Using pry 0.14.2
Using parallel_tests 3.13.0
Using ronn 0.7.3
Using rspec-core 3.12.2
Using rspec-expectations 3.12.3
Using rspec-mocks 3.12.5
Using rspec-sorbet 1.9.2
Using simplecov 0.22.0
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching activesupport 6.1.7.4
Installing activesupport 6.1.7.4
Using patchelf 1.4.0
Using rspec-github 2.4.0
Using rspec-retry 0.6.2
Using rspec_junit_formatter 0.6.0
Using rspec-its 1.3.0
Using rspec 3.12.0
Using simplecov-cobertura 2.1.0
Fetching simpleidn 0.2.1
Installing simpleidn 0.2.1
Fetching json_schemer 1.0.3
Fetching parser 3.2.2.3
Installing json_schemer 1.0.3
Installing parser 3.2.2.3
Using rubocop-ast 1.29.0
Using rubocop 1.50.2
Using rubocop-capybara 2.18.0
Using rubocop-performance 1.17.1
Using rubocop-rails 2.19.1
Using rubocop-sorbet 0.7.0
Using rubocop-rspec 2.20.0
Bundle complete! 36 Gemfile dependencies, 69 gems now installed.
Bundled gems are installed into ./.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle
Removing activesupport (6.1.7.3)
Removing ecma-re-validator (0.4.0)
Removing json_schemer (0.2.24)
Removing parser (3.2.2.1)
Removing uri_template (0.7.0)
Randomized with seed 1072
4 processes for 353 specs, ~ 88 specs per process
....................................................................................................................................................................................F..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F..................................................................................................................................................................................................................................................................................................................................................................................................................................F............................................................................................................................F..............................................................................................................................F.............................................F...................................................F..................................................................................F....F....................................................F..................................................................................F.......................................F....................................F...........................FFF.F..F.FF......F.................F....................F...................................................................F.....................F.....F......................F..........F.....F..................F...............................F............................................................................................................................................................F..........****..............

Pending: (Failures listed here are expected and do not affect your suite's status)

  1. Language::Python::Virtualenv::Virtualenv#pip_install accepts a multi-line strings

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:32

  2. Language::Python::Virtualenv::Virtualenv#pip_install accepts an array

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:44

  3. Language::Python::Virtualenv::Virtualenv#pip_install accepts a string

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:24

  4. Language::Python::Virtualenv::Virtualenv#pip_install accepts a Resource

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:58

  5. Language::Python::Virtualenv::Virtualenv#pip_install works without build isolation

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:70

  6. Language::Python::Virtualenv::Virtualenv#pip_install_and_link can link manpages

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:108

  7. Language::Python::Virtualenv::Virtualenv#pip_install_and_link can link scripts

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:85

  8. Language::Python::Virtualenv::Virtualenv#create creates a venv

    Python is not installed.

    ./test/language/python/virtualenv_spec.rb:17

  9. Language::Python#site_packages gives a different location between PyPy and Python 2

    Python is not installed.

    ./test/language/python_spec.rb:14

  10. Language::Python#major_minor_version returns a Version for Python 2
    # Python is not installed.
    # ./test/language/python_spec.rb:7

  11. Language::Python#user_site_packages can determine user site packages location
    # Python is not installed.
    # ./test/language/python_spec.rb:27

  12. Language::Python#homebrew_site_packages returns the Homebrew site packages location
    # Python is not installed.
    # ./test/language/python_spec.rb:20

Failures:

  1. Caveats#caveats when f.keg_only is not nil when joining different caveat types together adds the correct amount of new lines to the output
    Failure/Error: expect(caveats).to include("if you don't want/need a background service")

    expected "something else\n\nformula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20230707-3751-82oa0l/prefix,\nbecause some reason.\n\nWarning: formula_name provides a service which can only be used on macOS or systemd!\nYou can manually execute the service instead with:\n /tmp/homebrew-tests-20230707-3751-82oa0l/cellar/formula_name/1.0/bin/cmd\n" to include "if you don't want/need a background service"
    Diff:
    @@ -1,8 +1,15 @@
    -if you don't want/need a background service
    +something else
    +
    +formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20230707-3751-82oa0l/prefix,
    +because some reason.
    +
    +Warning: formula_name provides a service which can only be used on macOS or systemd!
    +You can manually execute the service instead with:

    • /tmp/homebrew-tests-20230707-3751-82oa0l/cellar/formula_name/1.0/bin/cmd

    ./test/caveats_spec.rb:289:in `block (5 levels) in <top (required)>'

F...............................F.........................................F...........................................
.F..............................................................................F.............................................FFFFF..........FF.......................FFFFFFFFFFFFF..............FFF......FF....F.....................................................F.................................F......F.......F................................................................................................................................................................................................................................................................

Failures:

  1. RuboCop::Cop::FormulaAudit::ProvidedByMacos krb5 formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  2. RuboCop::Cop::FormulaAudit::ProvidedByMacos libedit formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  3. RuboCop::Cop::FormulaAudit::ProvidedByMacos libiconv formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  4. RuboCop::Cop::FormulaAudit::ProvidedByMacos apr formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  5. RuboCop::Cop::FormulaAudit::ProvidedByMacos berkeley-db formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  6. RuboCop::Cop::FormulaAudit::ProvidedByMacos cups formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  7. RuboCop::Cop::FormulaAudit::ProvidedByMacos ed formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  8. RuboCop::Cop::FormulaAudit::ProvidedByMacos libxslt formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  9. RuboCop::Cop::FormulaAudit::ProvidedByMacos curl formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  10. RuboCop::Cop::FormulaAudit::ProvidedByMacos zip formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  11. RuboCop::Cop::FormulaAudit::ProvidedByMacos ruby formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  12. RuboCop::Cop::FormulaAudit::ProvidedByMacos libxcrypt formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  13. RuboCop::Cop::FormulaAudit::ProvidedByMacos lsof formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  14. RuboCop::Cop::FormulaAudit::ProvidedByMacos tcl-tk formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  15. RuboCop::Cop::FormulaAudit::ProvidedByMacos zlib formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  16. RuboCop::Cop::FormulaAudit::ProvidedByMacos file-formula formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  17. RuboCop::Cop::FormulaAudit::ProvidedByMacos rpcgen formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  18. RuboCop::Cop::FormulaAudit::ProvidedByMacos cyrus-sasl formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  19. RuboCop::Cop::FormulaAudit::ProvidedByMacos gnu-getopt formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  20. RuboCop::Cop::FormulaAudit::ProvidedByMacos texinfo formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  21. RuboCop::Cop::FormulaAudit::ProvidedByMacos dyld-headers formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  22. RuboCop::Cop::FormulaAudit::ProvidedByMacos whois formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  23. RuboCop::Cop::FormulaAudit::ProvidedByMacos ncurses formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  24. RuboCop::Cop::FormulaAudit::ProvidedByMacos pod2man formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  25. RuboCop::Cop::FormulaAudit::ProvidedByMacos m4 formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  26. RuboCop::Cop::FormulaAudit::ProvidedByMacos bison formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  27. RuboCop::Cop::FormulaAudit::ProvidedByMacos bzip2 formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  28. RuboCop::Cop::FormulaAudit::ProvidedByMacos libarchive formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  29. RuboCop::Cop::FormulaAudit::ProvidedByMacos expat formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  30. RuboCop::Cop::FormulaAudit::ProvidedByMacos ncompress formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  31. RuboCop::Cop::FormulaAudit::ProvidedByMacos gperf formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  32. RuboCop::Cop::FormulaAudit::ProvidedByMacos pcsc-lite formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  33. RuboCop::Cop::FormulaAudit::ProvidedByMacos unzip formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  34. RuboCop::Cop::FormulaAudit::ProvidedByMacos llvm formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  35. RuboCop::Cop::FormulaAudit::ProvidedByMacos libpcap formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  36. RuboCop::Cop::FormulaAudit::ProvidedByMacos bc formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  37. RuboCop::Cop::FormulaAudit::ProvidedByMacos openldap formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  38. RuboCop::Cop::FormulaAudit::ProvidedByMacos icu4c formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  39. RuboCop::Cop::FormulaAudit::ProvidedByMacos net-snmp formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  40. RuboCop::Cop::FormulaAudit::ProvidedByMacos flex formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  41. RuboCop::Cop::FormulaAudit::ProvidedByMacos libressl formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  42. RuboCop::Cop::FormulaAudit::ProvidedByMacos swift formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  43. RuboCop::Cop::FormulaAudit::ProvidedByMacos unifdef formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  44. RuboCop::Cop::FormulaAudit::ProvidedByMacos libxml2 formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  45. RuboCop::Cop::FormulaAudit::ProvidedByMacos netcat formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  46. RuboCop::Cop::FormulaAudit::ProvidedByMacos sqlite formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  47. RuboCop::Cop::FormulaAudit::ProvidedByMacos ssh-copy-id formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  48. RuboCop::Cop::FormulaAudit::ProvidedByMacos pax formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  49. RuboCop::Cop::FormulaAudit::ProvidedByMacos libffi formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/provided_by_macos_spec.rb:42

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

.......................................

Failures:

  1. brew --prefix prints the prefix for a Formula
    Failure/Error:
    expect { brew_sh "--prefix", "wget" }
    .to output("#{ENV.fetch("HOMEBREW_PREFIX")}/opt/wget\n").to_stdout
    .and not_to_output.to_stderr
    .and be_a_success

     expected block to output "/home/linuxbrew/.linuxbrew/opt/wget\n" to stdout, but output nothing
    

    ...and:

        expected block to not output to stderr, but output "Error: No available formula with the name \"wget\".\n"
    
     ...and:
    
        expected #<Proc:0x000055dfb54c0370@/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/cmd/--prefix_spec.rb:16> to be a success
    

    ./test/cmd/--prefix_spec.rb:16:in `block (2 levels) in <top (required)>'

    ./test/support/helper/spec/shared_context/integration_test.rb:49:in `block (2 levels) in <top (required)>'

  2. RuboCop::Cop::FormulaAudit::UsesFromMacos xz formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  3. RuboCop::Cop::FormulaAudit::UsesFromMacos zsh formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  4. RuboCop::Cop::FormulaAudit::UsesFromMacos rsync formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  5. RuboCop::Cop::FormulaAudit::UsesFromMacos perl formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  6. RuboCop::Cop::FormulaAudit::UsesFromMacos openssl formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  7. RuboCop::Cop::FormulaAudit::UsesFromMacos vim formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  8. RuboCop::Cop::FormulaAudit::UsesFromMacos python formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  9. RuboCop::Cop::FormulaAudit::UsesFromMacos mandoc formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  10. RuboCop::Cop::FormulaAudit::UsesFromMacos groff formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  11. RuboCop::Cop::FormulaAudit::UsesFromMacos cpio formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  12. RuboCop::Cop::FormulaAudit::UsesFromMacos expect formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  13. RuboCop::Cop::FormulaAudit::UsesFromMacos php formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  14. RuboCop::Cop::FormulaAudit::UsesFromMacos git formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  15. RuboCop::Cop::FormulaAudit::UsesFromMacos bash formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  16. RuboCop::Cop::FormulaAudit::UsesFromMacos gzip formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

  17. RuboCop::Cop::FormulaAudit::UsesFromMacos less formula exists
    Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

    expected true
    got false
    Shared Example Group: "formulae exist" called from ./test/rubocops/uses_from_macos_spec.rb:20

    ./test/support/helper/spec/shared_examples/formulae_exist.rb:9:in `block (3 levels) in <top (required)>'

Took 107 seconds (1:47)
Tests Failed

What did you expect to happen?

Tests Passed!

Step-by-step reproduction instructions (by running brew commands)

podman run -it homebrew/brew
brew tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedPR was locked due to age

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions