summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-01 14:34:15 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-01 14:35:44 -0500
commit808aba6b5ba02d64c68fcdd4487048e257e322d8 (patch)
tree6e57465ad31e0beeb0ba34473d60e1708c503c33 /tests.sh
parent09fd2a82ded3cf97f91f30fa1ed4937b60fc9998 (diff)
downloadbfs-808aba6b5ba02d64c68fcdd4487048e257e322d8.tar.xz
tests: set -P for the whole script
We rely on physical path resolution in test_execdir_pwd.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests.sh b/tests.sh
index 4ac9763..217e935 100755
--- a/tests.sh
+++ b/tests.sh
@@ -16,7 +16,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #
############################################################################
-set -e
+set -eP
umask 022
export LC_ALL=C
@@ -845,7 +845,6 @@ eval enabled_tests=($(printf '%q\n' "${enabled_tests[@]}" | sort -u))
function _realpath() {
(
- set -P
cd "$(dirname -- "$1")"
echo "$PWD/$(basename -- "$1")"
)