mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
failing test case for multiline command in dockerfile
This commit is contained in:
parent
6678a26d1c
commit
672f1e0683
1 changed files with 15 additions and 0 deletions
|
@ -45,6 +45,21 @@ run [ "$(ls -d /var/run/sshd)" = "/var/run/sshd" ]
|
|||
nil,
|
||||
},
|
||||
|
||||
// Exactly the same as above, except uses a line split with a \ to test
|
||||
// multiline support.
|
||||
{
|
||||
`
|
||||
from {IMAGE}
|
||||
run sh -c 'echo root:testpass \
|
||||
> /tmp/passwd'
|
||||
run mkdir -p /var/run/sshd
|
||||
run [ "$(cat /tmp/passwd)" = "root:testpass" ]
|
||||
run [ "$(ls -d /var/run/sshd)" = "/var/run/sshd" ]
|
||||
`,
|
||||
nil,
|
||||
nil,
|
||||
},
|
||||
|
||||
{
|
||||
`
|
||||
from {IMAGE}
|
||||
|
|
Loading…
Reference in a new issue