croc: fix test
Update croc.rb update test for linux build Closes #85076. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
1ce3271cff
commit
3bdd07849f
|
@ -24,8 +24,9 @@ class Croc < Formula
|
|||
fork do
|
||||
exec bin/"croc", "send", "--code=homebrew-test", "--text=mytext"
|
||||
end
|
||||
sleep 1
|
||||
sleep 5
|
||||
|
||||
assert_match shell_output("#{bin}/croc --yes homebrew-test").chomp, "mytext"
|
||||
assert_match "mytext", pipe_output(bin/"croc --yes homebrew-test", "y\n") if OS.mac?
|
||||
assert_match shell_output("#{bin}/croc --yes homebrew-test").chomp, "mytext" if OS.linux?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue