|
|
@@ -648,8 +648,13 @@ func TestBuildTLS(t *testing.T) {
|
|
|
|
|
|
func TestBuildEscaped(t *testing.T) {
|
|
|
c := NewParallelCLI(t)
|
|
|
- // ensure local test run does not reuse previously build image
|
|
|
- c.RunDockerOrExitError(t, "rmi", "build-test-tags")
|
|
|
- res := c.RunDockerComposeCmd(t, "--project-directory", "./fixtures/build-test/escaped", "build", "--no-cache")
|
|
|
+
|
|
|
+ res := c.RunDockerComposeCmd(t, "--project-directory", "./fixtures/build-test/escaped", "build", "--no-cache", "foo")
|
|
|
res.Assert(t, icmd.Expected{Out: "foo is ${bar}"})
|
|
|
+
|
|
|
+ res = c.RunDockerComposeCmd(t, "--project-directory", "./fixtures/build-test/escaped", "build", "--no-cache", "echo")
|
|
|
+ res.Assert(t, icmd.Success)
|
|
|
+
|
|
|
+ res = c.RunDockerComposeCmd(t, "--project-directory", "./fixtures/build-test/escaped", "build", "--no-cache", "arg")
|
|
|
+ res.Assert(t, icmd.Success)
|
|
|
}
|