glances: brew style --fix

This commit is contained in:
Mike McQuaid 2019-10-15 09:00:31 +01:00
parent 7aff29907b
commit 65aaba84aa
No known key found for this signature in database
GPG key ID: 48A898132FD8EE70

View file

@ -252,15 +252,13 @@ class Glances < Formula
end
test do
begin
read, write = IO.pipe
pid = fork do
exec bin/"glances", "-q", "--export", "csv", "--export-csv-file", "/dev/stdout", :out => write
end
header = read.gets
assert_match "timestamp", header
ensure
Process.kill("TERM", pid)
read, write = IO.pipe
pid = fork do
exec bin/"glances", "-q", "--export", "csv", "--export-csv-file", "/dev/stdout", :out => write
end
header = read.gets
assert_match "timestamp", header
ensure
Process.kill("TERM", pid)
end
end