Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Formula/f/firebase-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def install
end

test do
assert_match "Failed to authenticate", shell_output("#{bin}/firebase init", 1)
# Skip `firebase init` on self-hosted Linux as it has different behavior with nil exit status
if !OS.linux? || ENV["GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED"].blank?
assert_match "Failed to authenticate", shell_output("#{bin}/firebase init", 1)
end

output = pipe_output("#{bin}/firebase login:ci --interactive --no-localhost", "dummy-code")
assert_match "Unable to authenticate", output
end
Expand Down
Loading