tests: make it clearer what happened when assert_output_contains fails

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-20 02:20:35 -05:00
1 parent 7a93b11bdd
commit a21ee6f216
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ assert_output_contains() {
input="${input/$expected/}" input="${input/$expected/}"
found=$((found + 1)) found=$((found + 1))
done done
assert_equal "$count" "$found" [[ "$count" -eq "$found" ]] || flunk "expected $count occurrences of '$expected', found $found"
} }
assert_output_not_contains() { assert_output_not_contains() {