From 72beb85323c9f7996ce7b13ce0308a65cfe2cc07 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Wed, 19 Oct 2022 23:21:17 +0200 Subject: [PATCH] Fix shellcheck warnings --- test/bats.bats | 2 ++ test/fixtures/bats/retry_success.bats | 1 + 2 files changed, 3 insertions(+) diff --git a/test/bats.bats b/test/bats.bats index 4759306d8f..8c6dab8116 100755 --- a/test/bats.bats +++ b/test/bats.bats @@ -1433,6 +1433,7 @@ enforce_own_process_group() { } @test "BATS_TEST_RETRIES allows for retrying tests" { + # shellcheck disable=SC2030 export LOG="$BATS_TEST_TMPDIR/call.log" bats_require_minimum_version 1.5.0 reentrant_run ! bats "$FIXTURE_ROOT/retry.bats" @@ -1482,6 +1483,7 @@ enforce_own_process_group() { } @test "Exit code is zero after successful retry (see #660)" { + # shellcheck disable=SC2031 export LOG="$BATS_TEST_TMPDIR/call.log" bats_require_minimum_version 1.5.0 reentrant_run -0 bats "$FIXTURE_ROOT/retry_success.bats" diff --git a/test/fixtures/bats/retry_success.bats b/test/fixtures/bats/retry_success.bats index 8b68b5747c..babfec831b 100644 --- a/test/fixtures/bats/retry_success.bats +++ b/test/fixtures/bats/retry_success.bats @@ -1,3 +1,4 @@ +# shellcheck disable=SC2034 BATS_TEST_RETRIES=2 # means three tries per test @test "Fail once" {