From 32b26a09c2b1cb87dd701ef71a696b3740e9a9df Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 11 Dec 2023 23:59:45 -0500 Subject: [PATCH] test: Don't error on unbound variable We would get this error instead of a test error: test/util.sh: line 32: GITHUB_ACTION: unbound variable This would happen when run locally. --- test/test-bashfmt.sh | 2 +- test/test-gofmt.sh | 2 +- test/test-markdownlint.sh | 2 +- test/test-yamlfmt.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-bashfmt.sh b/test/test-bashfmt.sh index cbd3c265..58140c37 100755 --- a/test/test-bashfmt.sh +++ b/test/test-bashfmt.sh @@ -4,7 +4,7 @@ echo running "$0" set -o errexit -set -o nounset +#set -o nounset set -o pipefail #ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir! diff --git a/test/test-gofmt.sh b/test/test-gofmt.sh index e2c7e9d0..86071742 100755 --- a/test/test-gofmt.sh +++ b/test/test-gofmt.sh @@ -3,7 +3,7 @@ echo running "$0" set -o errexit -set -o nounset +#set -o nounset set -o pipefail #ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir! diff --git a/test/test-markdownlint.sh b/test/test-markdownlint.sh index 2228200d..8f995592 100755 --- a/test/test-markdownlint.sh +++ b/test/test-markdownlint.sh @@ -3,7 +3,7 @@ echo running "$0 $*" set -o errexit -set -o nounset +#set -o nounset set -o pipefail #ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir! diff --git a/test/test-yamlfmt.sh b/test/test-yamlfmt.sh index 8714bb43..037d998b 100755 --- a/test/test-yamlfmt.sh +++ b/test/test-yamlfmt.sh @@ -5,7 +5,7 @@ exit 0 # i give up, we're skipping this entirely, help wanted to fix this echo running "$0" set -o errexit -set -o nounset +#set -o nounset set -o pipefail #ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" # dir!