Rename slow_git to slow_git_clone

Making room for slow_git_fetch upcoming.
This commit is contained in:
Tim Hockin 2021-06-23 12:28:12 -07:00
parent a8b0acef1d
commit ab0fe416de
2 changed files with 6 additions and 6 deletions

View File

@ -161,7 +161,7 @@ function finish() {
}
trap finish INT EXIT
SLOW_GIT=/slow_git.sh
SLOW_GIT_CLONE=/slow_git_clone.sh
ASKPASS_GIT=/askpass_git.sh
SYNC_HOOK_COMMAND=/test_sync_hook_command.sh
@ -174,7 +174,7 @@ function GIT_SYNC() {
--network="host" \
-u $(id -u):$(id -g) \
-v "$DIR":"$DIR":rw \
-v "$(pwd)/slow_git.sh":"$SLOW_GIT":ro \
-v "$(pwd)/slow_git_clone.sh":"$SLOW_GIT_CLONE":ro \
-v "$(pwd)/askpass_git.sh":"$ASKPASS_GIT":ro \
-v "$(pwd)/test_sync_hook_command.sh":"$SYNC_HOOK_COMMAND":ro \
-v "$DOT_SSH/id_test":"/etc/git-secret/ssh":ro \
@ -736,7 +736,7 @@ testcase "sync-loop-timeout"
echo "$TESTCASE 1" > "$REPO"/file
git -C "$REPO" commit -qam "$TESTCASE 1"
GIT_SYNC \
--git="$SLOW_GIT" \
--git="$SLOW_GIT_CLONE" \
--one-time \
--sync-timeout=1s \
--repo="file://$REPO" \
@ -746,9 +746,9 @@ GIT_SYNC \
> "$DIR"/log."$TESTCASE" 2>&1 || true
# check for failure
assert_file_absent "$ROOT"/link/file
# run with slow_git but without timing out
# run with slow_git_clone but without timing out
GIT_SYNC \
--git="$SLOW_GIT" \
--git="$SLOW_GIT_CLONE" \
--period=100ms \
--sync-timeout=16s \
--repo="file://$REPO" \
@ -1072,7 +1072,7 @@ BINDPORT=8888
echo "$TESTCASE 1" > "$REPO"/file
git -C "$REPO" commit -qam "$TESTCASE 1"
GIT_SYNC \
--git="$SLOW_GIT" \
--git="$SLOW_GIT_CLONE" \
--period=100ms \
--repo="file://$REPO" \
--branch=e2e-branch \