mirror of
https://github.com/gitwatch/gitwatch
synced 2024-11-15 06:12:52 +00:00
one more try
This commit is contained in:
parent
d757ac2f21
commit
06fdc07206
@ -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.
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user