aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test.sh
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-14 18:58:19 +0500
committerEgor Tensin <egor@tensin.name>2026-10-14 18:58:19 +0500
commita8e017fedcae615576f61d28ac273449053f6f8b (patch)
treee21503439ca4715fa378780b373e3d38fced4f16 /lib/test.sh
parentREADME: update (diff)
downloadtest-harness-a8e017fedcae615576f61d28ac273449053f6f8b.tar.gz
test-harness-a8e017fedcae615576f61d28ac273449053f6f8b.zip
pollute the global namespace lessv0.2.0
Diffstat (limited to 'lib/test.sh')
-rw-r--r--lib/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test.sh b/lib/test.sh
index 59e7ce6..7c5844b 100644
--- a/lib/test.sh
+++ b/lib/test.sh
@@ -6,13 +6,13 @@
test_should_fail=
test_root_dir=
-test_setup_global() {
+_test_setup_global() {
test_root_dir="$( mktemp -d )"
# mktemp returns /var/..., which is actually in /private/var/... on macOS.
test_root_dir="$( readlink -e -- "$test_root_dir" )"
}
-test_cleanup_global() {
+_test_cleanup_global() {
if [ "$( type -t test_cleanup )" == function ]; then
test_cleanup || true
fi