From 672f1e068392e95966cd57b4bc49bd8d1b8859dd Mon Sep 17 00:00:00 2001 From: Jason McVetta Date: Mon, 9 Sep 2013 15:21:04 -0700 Subject: [PATCH] failing test case for multiline command in dockerfile --- buildfile_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/buildfile_test.go b/buildfile_test.go index 14986161d8..aa2cfa4fdf 100644 --- a/buildfile_test.go +++ b/buildfile_test.go @@ -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}