Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-cmd/livecheck: avoid watchlist in test #15881

Merged
merged 1 commit into from
Aug 16, 2023

Commits on Aug 16, 2023

  1. dev-cmd/livecheck: avoid watchlist in test

    The existing watchlist test in `dev-cmd/livecheck_spec.rb` will only
    pass if the testing environment doesn't contain a livecheck watchlist
    file. When a watchlist file is present, it ends up being treated as
    empty (formulae and casks aren't available in tests) and produces an
    `Invalid usage: No formulae or casks to check` error instead. We don't
    have to worry about a watchlist file on CI but it's a potential issue
    when running `brew test` locally.
    
    This provides a bogus `HOMEBREW_LIVECHECK_WATCHLIST` value to the
    `#brew` call, to ensure that any watchlist file in the testing
    environment is not used for this test.
    
    Co-authored-by: Mike McQuaid <[email protected]>
    samford and MikeMcQuaid committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    1d404e4 View commit details
    Browse the repository at this point in the history