From fc7c23355a22195587302a01b5fa3718bce3b374 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Thu, 16 Apr 2026 17:13:12 +0200 Subject: [PATCH] Be less verbose The output is already printed once anyway. ```git-check-assertions [success] ./test/git-check-assertions.bats ``` --- bin/git-check-assertions | 1 - test/git-check-assertions.bats | 2 -- 2 files changed, 3 deletions(-) diff --git a/bin/git-check-assertions b/bin/git-check-assertions index f8ef8c0..6dd5c6e 100755 --- a/bin/git-check-assertions +++ b/bin/git-check-assertions @@ -135,7 +135,6 @@ for commit_hash in "${commits[@]}"; do for expected in step["assertions"]: if expected not in output: print(f"Expected output to contain: {expected}") - print(f"Actual output: {output}") sys.exit(1) EOF } diff --git a/test/git-check-assertions.bats b/test/git-check-assertions.bats index ccd0a2f..476add5 100755 --- a/test/git-check-assertions.bats +++ b/test/git-check-assertions.bats @@ -413,7 +413,6 @@ commit_with_assertion() { assert_failure assert_output --partial "Expected output to contain: goodbye" - assert_output --partial "Actual output: hello" } @test "an output line should also check stderr output" { @@ -442,7 +441,6 @@ commit_with_assertion() { assert_failure assert_output --partial "Expected output to contain: xyz" - assert_output --partial "Actual output: hello" } @test "executed commands should print command output" {