refactor around job claim name and runner instance labels (#20)

* refactor around job claim name, and runner instance labels

* repaired failing test
This commit is contained in:
Nikola Jokic
2022-06-22 06:32:50 -07:00
committed by GitHub
parent 4307828719
commit 20c19dae27
4 changed files with 26 additions and 21 deletions

View File

@@ -52,7 +52,9 @@ describe('run script step', () => {
definitions.runScriptStep.args.entryPoint = '/bin/bash'
definitions.runScriptStep.args.entryPointArgs = [
'-c',
`if [[ ! $(env | grep "^PATH=") = "PATH=${definitions.runScriptStep.args.prependPath}:"* ]]; then exit 1; fi`
`if [[ ! $(env | grep "^PATH=") = "PATH=${definitions.runScriptStep.args.prependPath.join(
':'
)}:"* ]]; then exit 1; fi`
]
await expect(
runScriptStep(definitions.runScriptStep.args, prepareJobResponse.state)