Test dockerfile with line containing literal "\n"

Upstream-commit: c01f6df43e1280c398d921c2d5eff01db8c26f94
Component: engine
This commit is contained in:
Jason McVetta
2013-09-09 18:23:17 -07:00
parent 40bf9b7fa6
commit 9a3ed98cdb
+13
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}