diff --git a/test_e2e.sh b/test_e2e.sh index 9e959ba..661c768 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -130,8 +130,9 @@ function GIT_SYNC() { -v "$DOT_SSH/id_test":"/etc/git-secret/ssh":ro \ --env XDG_CONFIG_HOME=$DIR \ e2e/git-sync:$(make -s version)__$(go env GOOS)_$(go env GOARCH) \ - --add-user \ - "$@" + --add-user \ + --v=5 \ + "$@" } function remove_containers() { @@ -150,7 +151,6 @@ testcase "head-once" echo "$TESTCASE" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE" GIT_SYNC \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --branch=master \ @@ -172,7 +172,6 @@ testcase "default-sync" echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --root="$ROOT" \ @@ -206,7 +205,6 @@ testcase "head-sync" echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --branch=master \ @@ -245,7 +243,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" git -C "$REPO" checkout -q master GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --branch="$BRANCH" \ @@ -286,7 +283,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" git -C "$REPO" tag -f "$TAG" >/dev/null GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --rev="$TAG" \ @@ -332,7 +328,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" git -C "$REPO" tag -af "$TAG" -m "$TESTCASE 1" >/dev/null GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --rev="$TAG" \ @@ -377,7 +372,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" REV=$(git -C "$REPO" rev-list -n1 HEAD) GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --rev="$REV" \ @@ -413,7 +407,6 @@ echo "$TESTCASE" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE" REV=$(git -C "$REPO" rev-list -n1 HEAD) GIT_SYNC \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --rev="$REV" \ @@ -434,7 +427,6 @@ testcase "crash-cleanup-retry" echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --root="$ROOT" \ @@ -447,7 +439,6 @@ assert_file_eq "$ROOT"/link/file "$TESTCASE 1" rm -f "$ROOT"/link # Try again GIT_SYNC \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --root="$ROOT" \ @@ -468,7 +459,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ --git="$SLOW_GIT" \ - --v=5 \ --one-time \ --timeout=1 \ --repo="file://$REPO" \ @@ -480,7 +470,6 @@ assert_file_absent "$ROOT"/link/file # run with slow_git but without timing out GIT_SYNC \ --git="$SLOW_GIT" \ - --v=5 \ --wait=0.1 \ --timeout=16 \ --repo="file://$REPO" \ @@ -510,7 +499,6 @@ echo "$TESTCASE 1" > "$REPO"/file expected_depth="1" git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --depth="$expected_depth" \ @@ -560,7 +548,6 @@ GIT_SYNC \ --git="$ASKPASS_GIT" \ --username="my-username" \ --password="wrong" \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --branch=master \ @@ -575,7 +562,6 @@ GIT_SYNC \ --git="$ASKPASS_GIT" \ --username="my-username" \ --password="my-password" \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --branch=master \ @@ -607,7 +593,6 @@ git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ --git="$ASKPASS_GIT" \ --askpass-url="http://localhost:$NCPORT/git_askpass" \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --branch=master \ @@ -628,7 +613,6 @@ assert_file_absent "$ROOT"/link/file GIT_SYNC \ --git="$ASKPASS_GIT" \ --askpass-url="http://localhost:$NCPORT/git_askpass" \ - --v=5 \ --one-time \ --repo="file://$REPO" \ --branch=master \ @@ -650,7 +634,6 @@ testcase "sync_hook_command" echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --root="$ROOT" \ @@ -684,7 +667,6 @@ freencport echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --repo="file://$REPO" \ --root="$ROOT" \ --webhook-url="http://127.0.0.1:$NCPORT" \ @@ -727,7 +709,6 @@ freencport echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --repo="file://$REPO" \ --root="$ROOT" \ --webhook-url="http://127.0.0.1:$NCPORT" \ @@ -754,7 +735,6 @@ echo "$TESTCASE 1" > "$REPO"/file git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ --git="$SLOW_GIT" \ - --v=5 \ --repo="file://$REPO" \ --root="$ROOT" \ --http-bind=":$BINDPORT" \ @@ -815,7 +795,6 @@ git -C "$NESTED_SUBMODULE" commit -aqm "init nested-submodule file" git -C "$REPO" submodule add -q file://$SUBMODULE git -C "$REPO" commit -aqm "add submodule" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --root="$ROOT" \ @@ -903,7 +882,6 @@ git -C "$REPO" submodule add -q file://$SUBMODULE git -C "$REPO" config -f "$REPO"/.gitmodules submodule.$SUBMODULE_REPO_NAME.shallow true git -C "$REPO" commit -qam "$TESTCASE 1" GIT_SYNC \ - --v=5 \ --wait=0.1 \ --repo="file://$REPO" \ --depth="$expected_depth" \ @@ -979,7 +957,6 @@ git -C "$REPO" submodule add -q file://$SUBMODULE git -C "$REPO" commit -aqm "add submodule" GIT_SYNC \ - --v=5 \ --submodules=off \ --wait=0.1 \ --repo="file://$REPO" \ @@ -1022,7 +999,6 @@ git -C "$REPO" submodule add -q file://$SUBMODULE git -C "$REPO" commit -aqm "add submodule" GIT_SYNC \ - --v=5 \ --submodules=shallow \ --wait=0.1 \ --repo="file://$REPO" \ @@ -1055,7 +1031,6 @@ sleep 3 # wait for sshd to come up IP=$(docker inspect "$CTR" | jq -r .[0].NetworkSettings.IPAddress) git -C "$REPO" commit -qam "$TESTCASE" GIT_SYNC \ - --v=5 \ --one-time \ --ssh \ --ssh-known-hosts=false \