diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-14 17:58:17 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-14 17:58:17 +0500 |
| commit | 1076ff1e8cf55b26997fbb20931b5e8903d91041 (patch) | |
| tree | de439bf87bf86bdfa4cb0a9a542b5777d8dd47b0 | |
| parent | test.sh: copy macOS workaround from config-links (diff) | |
| download | test-harness-0.1.0.tar.gz test-harness-0.1.0.zip | |
copy Xenial workaround from config-linksv0.1.0
| -rwxr-xr-x | main.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
