File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ function docker_signal() {
169169# tags are system-global, but one might have multiple repos checked out.
170170E2E_TAG=$( git rev-parse --show-toplevel | sed ' s|/|_|g' )
171171
172+ # Setting IMAGE forces the test to use a specific image instead of the current
173+ # tree.
174+ IMAGE=" ${IMAGE:- " e2e/git-sync:${E2E_TAG} __$( go env GOOS) _$( go env GOARCH) " } "
175+
172176# DIR is the directory in which all this test's state lives.
173177RUNID=" ${RANDOM}${RANDOM} "
174178DIR=" /tmp/git-sync-e2e.$RUNID "
@@ -264,7 +268,7 @@ function GIT_SYNC() {
264268 --env " $EXECHOOK_ENVKEY =$EXECHOOK_ENVVAL " \
265269 -v " $RUNLOG " :/var/log/runs \
266270 -v " $DOT_SSH /id_test" :" /etc/git-secret/ssh" :ro \
267- e2e/git-sync: " ${E2E_TAG} " __ $( go env GOOS ) _ $( go env GOARCH ) \
271+ " ${IMAGE} " \
268272 -v=6 \
269273 --add-user \
270274 --group-write \
You can’t perform that action at this time.
0 commit comments