test(audit): reject arithmetic diagnostics across Bash versions

This commit is contained in:
2026-10-30 11:10:22 -03:00
parent c9014c9b36
commit 6bdef49a05
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,5 +23,5 @@ setup() {
@test "pre-format checks handle zero profiles without arithmetic diagnostics" { @test "pre-format checks handle zero profiles without arithmetic diagnostics" {
run run_preformat_check run run_preformat_check
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
[[ "$output" != *"integer expression expected"* ]] [[ ! "$output" =~ integer.*expected ]]
} }
+1 -1
View File
@@ -49,7 +49,7 @@ teardown() {
' bash "$BATS_TEST_DIRNAME/.." ' bash "$BATS_TEST_DIRNAME/.."
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
[[ "$output" == *"Risk:"* ]] [[ "$output" == *"Risk:"* ]]
[[ "$output" != *"integer expression expected"* ]] [[ ! "$output" =~ integer.*expected ]]
} }
@test "audit and report JSON contain numeric zero counts under nounset" { @test "audit and report JSON contain numeric zero counts under nounset" {