File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ setup() {
102102 export BUILDKITE_COMMAND=" pwd"
103103
104104 stub docker \
105- " run -t -i --rm --init --volume $PWD :/workdir --workdir /workdir --env BUILDKITE_JOB_ID --env BUILDKITE_BUILD_ID --env BUILDKITE_AGENT_ACCESS_TOKEN ' --volume' '/tmp/bin/buildkite-agent:/usr/bin/buildkite-agent' --label com.buildkite.job-id=1-2-3-4 image:tag /bin/sh -e -c 'pwd' : echo ran command in docker"
105+ " run -t -i --rm --init --volume $PWD :/workdir --workdir /workdir --env BUILDKITE_JOB_ID --env BUILDKITE_BUILD_ID --env BUILDKITE_AGENT_ACCESS_TOKEN --volume \* --label com.buildkite.job-id=1-2-3-4 image:tag /bin/sh -e -c 'pwd' : echo ran command in docker with buildkite agent mounted at \$ {17} "
106106
107107 # only for the command to exist
108108 stub buildkite-agent \
@@ -113,6 +113,7 @@ setup() {
113113 assert_success
114114 refute_output --partial " 🚨 Failed to find buildkite-agent"
115115 assert_output --partial " ran command in docker"
116+ assert_output --partial " /bin/buildkite-agent:/usr/bin/buildkite-agent" # check agent is mounted
116117
117118 unstub docker
118119 unstub buildkite-agent || true
You can’t perform that action at this time.
0 commit comments