Browse code

Windows: nanoserver tlist not tasklist

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2016/07/23 02:36:51
Showing 1 changed files
... ...
@@ -6947,10 +6947,9 @@ func (s *DockerSuite) TestBuildShellWindowsPowershell(c *check.C) {
6947 6947
 func (s *DockerSuite) TestBuildCmdShellArgsEscaped(c *check.C) {
6948 6948
 	testRequires(c, DaemonIsWindows)
6949 6949
 	name := "testbuildcmdshellescaped"
6950
-
6951 6950
 	_, err := buildImage(name, `
6952 6951
   FROM `+minimalBaseImage()+`
6953
-  CMD "tasklist"
6952
+  CMD "ipconfig"
6954 6953
   `, true)
6955 6954
 	if err != nil {
6956 6955
 		c.Fatal(err)
... ...
@@ -6963,7 +6962,7 @@ func (s *DockerSuite) TestBuildCmdShellArgsEscaped(c *check.C) {
6963 6963
 	dockerCmd(c, "wait", "inspectme")
6964 6964
 	res = inspectFieldJSON(c, name, "Config.Cmd")
6965 6965
 
6966
-	if res != `["cmd","/S","/C","\"tasklist\""]` {
6966
+	if res != `["cmd","/S","/C","\"ipconfig\""]` {
6967 6967
 		c.Fatalf("CMD was not escaped Config.Cmd: got %v", res)
6968 6968
 	}
6969 6969
 }