showkey: fix test for Linux
Closes #113247. Signed-off-by: Bo Anderson <mail@boanderson.me> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
de3b598fb6
commit
0cf98a10cf
|
@ -33,7 +33,13 @@ class Showkey < Formula
|
|||
test do
|
||||
require "expect"
|
||||
|
||||
output = Utils.safe_popen_write("script", "-q", "/dev/null", bin/"showkey") do |pipe|
|
||||
args = if OS.linux?
|
||||
["script", "-q", "/dev/null", "-c", bin/"showkey"]
|
||||
else
|
||||
["script", "-q", "/dev/null", bin/"showkey"]
|
||||
end
|
||||
|
||||
output = Utils.safe_popen_write(*args) do |pipe|
|
||||
pipe.expect(/interrupt .*? or quit .*? character\.\r?\n$/)
|
||||
pipe.write "Hello Homebrew!"
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in New Issue