commit: 833c5600ba5fd3570c8b53470f317151be85d2f4
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Feb 7 23:53:13 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 8 00:02:20 2023 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=833c5600
test-functions: unset -v dir a little earlier
That way, it's guaranteed that it's unset at the point that the cleanup
function is called on account of not sourcing the functions.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
test-functions | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test-functions b/test-functions
index 3f34d59..d3cd154 100755
--- a/test-functions
+++ b/test-functions
@@ -151,14 +151,14 @@ test_get_bootparam() {
return "$(( passed < total ))"
}
-
printf 'TAP version 14\n'
+unset -v dir
+
if ! . ./functions.sh; then
bailout "Couldn't source ./functions.sh"
fi
-unset -v dir
assign_tmpdir
export TEST_GENFUNCS=1