From 06fdc07206c03befb9ecb30ed9b65952db62e4f6 Mon Sep 17 00:00:00 2001 From: "Dave Musicant (home machine)" Date: Sun, 4 Dec 2022 12:26:11 -0600 Subject: [PATCH] one more try --- tests/spaces.bats | 4 ++-- tests/startup-shutdown-spaces.bash | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/spaces.bats b/tests/spaces.bats index db8726d..09e90e8 100644 --- a/tests/spaces.bats +++ b/tests/spaces.bats @@ -6,7 +6,7 @@ load startup-shutdown-spaces function spaces_in_target_dir { #@test # Start up gitwatch with logging, see if works - "${BATS_TEST_DIRNAME}"/../gitwatch.sh -l 10 "$testdir/local/remote with spaces" 3>&- & + "${BATS_TEST_DIRNAME}"/../gitwatch.sh -l 10 "$testdir/local/rem with spaces" 3>&- & echo "Testdir: $testdir" >&3 GITWATCH_PID=$! @@ -14,7 +14,7 @@ function spaces_in_target_dir { #@test disown # Create a file, verify that it hasn't been added yet, then commit - cd "remote with spaces" + cd "rem with spaces" # According to inotify documentation, a race condition results if you write # to directory too soon after it has been created; hence, a short wait. diff --git a/tests/startup-shutdown-spaces.bash b/tests/startup-shutdown-spaces.bash index a8856cd..dbfecb9 100755 --- a/tests/startup-shutdown-spaces.bash +++ b/tests/startup-shutdown-spaces.bash @@ -5,7 +5,7 @@ setup() { # shellcheck disable=SC2034 WAITTIME=4 # Set up directory structure and initialize remote - testdir=$(mktemp -d) + testdir=$(mktemp -d "/tmp/temp space.XXXXX") # shellcheck disable=SC2164 cd "$testdir" mkdir remote @@ -18,7 +18,7 @@ setup() { mkdir local # shellcheck disable=SC2164 cd local - git clone -q ../remote "remote with spaces" + git clone -q ../remote "rem with spaces" } teardown() {