Skip to content

Commit 5365f2c

Browse files
committed
firebase-cli: update test for self-hosted linux
1 parent cfde8ea commit 5365f2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Formula/f/firebase-cli.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def install
2323
end
2424

2525
test do
26-
assert_match "Failed to authenticate", shell_output("#{bin}/firebase init", 1)
26+
# Skip `firebase init` on self-hosted Linux as it has different behavior with nil exit status
27+
if !OS.linux? || ENV["GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED"].blank?
28+
assert_match "Failed to authenticate", shell_output("#{bin}/firebase init", 1)
29+
end
30+
2731
output = pipe_output("#{bin}/firebase login:ci --interactive --no-localhost", "dummy-code")
2832
assert_match "Unable to authenticate", output
2933
end

0 commit comments

Comments
 (0)