https://github.com/bats-core/bats-core/commit/3c65504bb51a9f5d589de70e885fa42b5a994588 From 3c65504bb51a9f5d589de70e885fa42b5a994588 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Fri, 20 Dec 2024 23:20:31 +0100 Subject: [PATCH] fix test expecation for bash RC (5.3) --- test/suite_setup_teardown.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suite_setup_teardown.bats b/test/suite_setup_teardown.bats index 9bd5d0e768..3bf728ea6c 100644 --- a/test/suite_setup_teardown.bats +++ b/test/suite_setup_teardown.bats @@ -66,7 +66,7 @@ setup() { @test "syntax errors in setup_suite.bash are reported and lead to non zero exit code" { LANG=C reentrant_run ! bats --setup-suite-file "$FIXTURE_ROOT/syntax_error/setup_suite_no_shellcheck" "$FIXTURE_ROOT/syntax_error/" - [ "${lines[1]}" == "$FIXTURE_ROOT/syntax_error/setup_suite_no_shellcheck: line 2: syntax error: unexpected end of file" ] + [[ "${lines[1]}" == "$FIXTURE_ROOT/syntax_error/setup_suite_no_shellcheck: line 2: syntax error: unexpected end of file"* ]] } @test "errors in setup_suite.bash's free code reported correctly" {