integration-cli: use string-literals for easier grep'ing

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2023-07-05 12:12:16 +02:00
parent 2f61620339
commit 6331a3a346
11 changed files with 42 additions and 42 deletions

View File

@@ -2258,7 +2258,7 @@ docker.com>"
`))
res := inspectField(c, name, "Author")
if res != "\"Docker IO <io@docker.com>\"" {
if res != `"Docker IO <io@docker.com>"` {
c.Fatalf("Parsed string did not match the escaped string. Got: %q", res)
}
}
@@ -2272,7 +2272,7 @@ func (s *DockerCLIBuildSuite) TestBuildVerifyIntString(c *testing.T) {
MAINTAINER 123`))
out, _ := dockerCmd(c, "inspect", name)
if !strings.Contains(out, "\"123\"") {
if !strings.Contains(out, `"123"`) {
c.Fatalf("Output does not contain the int as a string:\n%s", out)
}
}