From bb68c8e6f5145e21965052dc92f5a95044d15c85 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:14:05 +0000 Subject: [PATCH 1/2] pug 0.6.0 pug: update test Signed-off-by: Rui Chen --- Formula/p/pug.rb | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/Formula/p/pug.rb b/Formula/p/pug.rb index 4b7c838c6b46b..0b9ad3e585d41 100644 --- a/Formula/p/pug.rb +++ b/Formula/p/pug.rb @@ -1,8 +1,8 @@ class Pug < Formula desc "Drive terraform at terminal velocity" homepage "https://github.com/leg100/pug" - url "https://github.com/leg100/pug/archive/refs/tags/v0.5.5.tar.gz" - sha256 "e79af618a610b7225a4a787de5e5615cba19f92d0b9a16f16e322c4a176522b8" + url "https://github.com/leg100/pug/archive/refs/tags/v0.6.0.tar.gz" + sha256 "ddafc44e9a844036dd802edd3bc8b229aee0002a4a0b83768a37f04243c3044a" license "MPL-2.0" head "https://github.com/leg100/pug.git", branch: "master" @@ -23,15 +23,22 @@ def install end test do - r, _w, pid = PTY.spawn("#{bin}/pug --debug") - # check on TUI elements - assert_match "Modules", r.readline - # check on debug logs - assert_match "loaded 0 modules", (testpath/"messages.log").read - assert_match version.to_s, shell_output("#{bin}/pug --version") - ensure - Process.kill("TERM", pid) - Process.wait(pid) + + # Fails in Linux CI with `open /dev/tty: no such device or address` + return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"] + + begin + output_log = testpath/"output.log" + pid = spawn bin/"pug", "--debug", [:out, :err] => output_log.to_s + + sleep 1 + + assert_match "loaded 0 modules", output_log.read + assert_path_exists testpath/"messages.log" + ensure + Process.kill("TERM", pid) + Process.wait(pid) + end end end From 5e923c2bd59bc2b240a1f9d3ee2aa3fa3545a877 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:56:29 +0000 Subject: [PATCH 2/2] pug: update 0.6.0 bottle. --- Formula/p/pug.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/p/pug.rb b/Formula/p/pug.rb index 0b9ad3e585d41..acf37fbfbd430 100644 --- a/Formula/p/pug.rb +++ b/Formula/p/pug.rb @@ -7,12 +7,12 @@ class Pug < Formula head "https://github.com/leg100/pug.git", branch: "master" bottle do - sha256 cellar: :any_skip_relocation, arm64_sequoia: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52" - sha256 cellar: :any_skip_relocation, arm64_ventura: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52" - sha256 cellar: :any_skip_relocation, sonoma: "9234423a1e24611ea85cb216cd2d3555d98b202d2b977d69be9b0b3c53fb78d0" - sha256 cellar: :any_skip_relocation, ventura: "9234423a1e24611ea85cb216cd2d3555d98b202d2b977d69be9b0b3c53fb78d0" - sha256 cellar: :any_skip_relocation, x86_64_linux: "f2aa800d83a097307bf5ab3b3e5aa90f8d2e8a0815b973474a3f14c9402c392c" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d" + sha256 cellar: :any_skip_relocation, arm64_ventura: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d" + sha256 cellar: :any_skip_relocation, sonoma: "957a1abaf2d15ad8d2c688a42b0458b554d4e48870baeb4bc5c9d7425a3e99dc" + sha256 cellar: :any_skip_relocation, ventura: "957a1abaf2d15ad8d2c688a42b0458b554d4e48870baeb4bc5c9d7425a3e99dc" + sha256 cellar: :any_skip_relocation, x86_64_linux: "7be671c9920414fc1a35724a00355561e558d32130ac463aded4d5b9095138ee" end depends_on "go" => :build