Introduce workdir

This commit is contained in:
Lars Gohr
2019-09-23 20:37:32 +02:00
parent 42252004bb
commit 1b9fb052a2
3 changed files with 26 additions and 0 deletions

View File

@@ -256,3 +256,14 @@ Called /usr/local/bin/docker logout"
[ "$status" -eq 1 ]
[ "$output" = "$expected" ]
}
@test "it errors when the working directory is configured but not present" {
export INPUT_WORKDIR='mySubDir'
run /entrypoint.sh
local expected="/entrypoint.sh: cd: line 39: can't cd to mySubDir: No such file or directory"
echo "$output"
[ "$status" -eq 2 ]
[ "$output" = "$expected" ]
}