aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-14 17:58:17 +0500
committerEgor Tensin <egor@tensin.name>2026-10-14 17:58:17 +0500
commit1076ff1e8cf55b26997fbb20931b5e8903d91041 (patch)
treede439bf87bf86bdfa4cb0a9a542b5777d8dd47b0
parenttest.sh: copy macOS workaround from config-links (diff)
downloadtest-harness-1076ff1e8cf55b26997fbb20931b5e8903d91041.tar.gz
test-harness-1076ff1e8cf55b26997fbb20931b5e8903d91041.zip
copy Xenial workaround from config-linksv0.1.0
-rwxr-xr-xmain.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.sh b/main.sh
index 1eb5268..80b3488 100755
--- a/main.sh
+++ b/main.sh
@@ -6,7 +6,8 @@
# Distributed under the MIT License.
set -o errexit -o nounset -o pipefail
-shopt -s inherit_errexit lastpipe
+shopt -s inherit_errexit 2> /dev/null || true
+shopt -s lastpipe
_script_dir="$( dirname -- "${BASH_SOURCE[0]}" )"
_script_dir="$( cd -- "$_script_dir" && pwd )"
@@ -43,7 +44,8 @@ run_test_file() {
set +e
(
set -o errexit -o nounset -o pipefail
- shopt -s inherit_errexit lastpipe
+ shopt -s inherit_errexit 2> /dev/null || true
+ shopt -s lastpipe
trap test_cleanup_global EXIT
test_setup_global