Skip to content

Commit 0ae6c31

Browse files
committed
DNM
1 parent 22b2e8e commit 0ae6c31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_e2e.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ function docker_signal() {
169169
# tags are system-global, but one might have multiple repos checked out.
170170
E2E_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.
173177
RUNID="${RANDOM}${RANDOM}"
174178
DIR="/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 \

0 commit comments

Comments
 (0)