Test dockerfile with line containing literal "\n"

This commit is contained in:
Jason McVetta 2013-09-09 18:22:58 -07:00
parent 4f3b8033f2
commit c01f6df43e
1 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,19 @@ run [ "$(ls -d /var/run/sshd)" = "/var/run/sshd" ]
nil,
},
// Line containing literal "\n"
{
`
from {IMAGE}
run sh -c 'echo root:testpass > /tmp/passwd'
run echo "foo \n bar"; echo "baz"
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}