From 155d3b1b42d33062e8ad471e3d3ae966e5a3ad63 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Nov 2016 22:18:57 -0500 Subject: tests: Make sure the temporary directory is owned by the current user/group BSDs apparently prefer to create new files/directories with the same group as the parent directory, rather than the current primary group. --- tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests.sh b/tests.sh index 04d8a65..08410d2 100755 --- a/tests.sh +++ b/tests.sh @@ -2,6 +2,7 @@ # The temporary directory that will hold our test data TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)" +chown "$(id -u)":"$(id -g)" "$TMP" # Clean up temporary directories on exit function cleanup() { -- cgit v1.2.3