summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-11-22 22:18:57 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-11-22 22:18:57 -0500
commit155d3b1b42d33062e8ad471e3d3ae966e5a3ad63 (patch)
treeed74b9be45156f100b9e1e882531c4c367ace4a3
parentd761a18c3b1a38390ae0c23fea203bd23f509d84 (diff)
downloadbfs-155d3b1b42d33062e8ad471e3d3ae966e5a3ad63.tar.xz
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.
-rwxr-xr-xtests.sh1
1 files changed, 1 insertions, 0 deletions
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() {