Fix tests failing locally.
This commit is contained in:
parent
66b6828ab5
commit
f87c9c5dc4
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
HOMEBREW_DEVELOPER: 1
|
HOMEBREW_DEVELOPER: 1
|
||||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||||
HOMEBREW_GITHUB_ACTIONS_BIG_SUR_TESTING: 1 # TODO: remove when Big Sur is released.
|
HOMEBREW_BIG_SUR_TESTING: 1 # TODO: remove when Big Sur is released.
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
if: github.repository == 'Homebrew/brew'
|
if: github.repository == 'Homebrew/brew'
|
||||||
|
@ -63,6 +63,7 @@ module Homebrew
|
|||||||
ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if args.generic?
|
ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if args.generic?
|
||||||
ENV["HOMEBREW_TEST_ONLINE"] = "1" if args.online?
|
ENV["HOMEBREW_TEST_ONLINE"] = "1" if args.online?
|
||||||
ENV["HOMEBREW_SORBET_RUNTIME"] = "1"
|
ENV["HOMEBREW_SORBET_RUNTIME"] = "1"
|
||||||
|
ENV["HOMEBREW_BIG_SUR_TESTING"] = "1"
|
||||||
|
|
||||||
ENV["USER"] ||= system_command!("id", args: ["-nu"]).stdout.chomp
|
ENV["USER"] ||= system_command!("id", args: ["-nu"]).stdout.chomp
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ module Homebrew
|
|||||||
who = +"We"
|
who = +"We"
|
||||||
# TODO: remove when Big Sur is supported.
|
# TODO: remove when Big Sur is supported.
|
||||||
what = if MacOS.version == :big_sur
|
what = if MacOS.version == :big_sur
|
||||||
return if ENV["HOMEBREW_GITHUB_ACTIONS_BIG_SUR_TESTING"]
|
return if ENV["HOMEBREW_BIG_SUR_TESTING"]
|
||||||
|
|
||||||
"released but not yet supported version"
|
"released but not yet supported version"
|
||||||
elsif OS::Mac.prerelease?
|
elsif OS::Mac.prerelease?
|
||||||
|
@ -54,7 +54,7 @@ describe GitHub do
|
|||||||
it "errors on an unauthenticated token" do
|
it "errors on an unauthenticated token" do
|
||||||
expect {
|
expect {
|
||||||
subject.sponsors_by_tier("Homebrew")
|
subject.sponsors_by_tier("Homebrew")
|
||||||
}.to raise_error(/INSUFFICIENT_SCOPES|FORBIDDEN/)
|
}.to raise_error(/INSUFFICIENT_SCOPES|FORBIDDEN|token needs the 'admin:org' scope/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user