X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/130e03cbb8a98b8949c85b5fd736609d07eaf8c1..3844e08a8d45a3c2d27987523effd5ae7eb66eaf:/lib/controller/integration_test.go diff --git a/lib/controller/integration_test.go b/lib/controller/integration_test.go index fb5dce6b3e..7bf739f902 100644 --- a/lib/controller/integration_test.go +++ b/lib/controller/integration_test.go @@ -1127,7 +1127,7 @@ func (s *IntegrationSuite) TestForwardRuntimeTokenToLoginCluster(c *check.C) { func (s *IntegrationSuite) TestRunTrivialContainer(c *check.C) { outcoll := s.runContainer(c, "z1111", map[string]interface{}{ - "command": []string{"touch", "/out/hello_world"}, + "command": []string{"sh", "-c", "touch \"/out/hello world\" /out/ohai"}, "container_image": "busybox:uclibc", "cwd": "/tmp", "environment": map[string]string{}, @@ -1137,8 +1137,8 @@ func (s *IntegrationSuite) TestRunTrivialContainer(c *check.C) { "priority": 1, "state": arvados.ContainerRequestStateCommitted, }, 0) - c.Check(outcoll.ManifestText, check.Matches, `\. d41d8.* 0:0:hello_world\n`) - c.Check(outcoll.PortableDataHash, check.Equals, "dac08d558cfb6c9536f604ca89e3c002+53") + c.Check(outcoll.ManifestText, check.Matches, `\. d41d8.* 0:0:hello\\040world 0:0:ohai\n`) + c.Check(outcoll.PortableDataHash, check.Equals, "8fa5dee9231a724d7cf377c5a2f4907c+65") } func (s *IntegrationSuite) runContainer(c *check.C, clusterID string, ctrSpec map[string]interface{}, expectExitCode int) arvados.Collection {