test(audit): reject arithmetic diagnostics across Bash versions
This commit is contained in:
@@ -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 ]]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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" {
|
||||||
|
|||||||
Reference in New Issue
Block a user