Skip to content

Commit 9038cac

Browse files
authored
Merge pull request #267 from buildkite-plugins/toote_fix_test
Fix test for tester v4.1.1
2 parents f5abd13 + 5772182 commit 9038cac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/command.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)