summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/pods_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-19 15:51:20 +0200
committerGitHub <noreply@github.com>2020-08-19 15:51:20 +0200
commitdd4e0da4241ac0b6deac3f5e07ea4eeb5819379e (patch)
tree3039b25f051e891d0717be53b856410a3b98c657 /pkg/systemd/generate/pods_test.go
parent45b3d61c5550f8a998f2117c52b26e53955ba56a (diff)
parentb1ffa2324eaf3e3d847ce4e0f738d6bf9e46a54b (diff)
downloadpodman-dd4e0da4241ac0b6deac3f5e07ea4eeb5819379e.tar.gz
podman-dd4e0da4241ac0b6deac3f5e07ea4eeb5819379e.tar.bz2
podman-dd4e0da4241ac0b6deac3f5e07ea4eeb5819379e.zip
Merge pull request #7350 from vrothberg/fix-7285
generate systemd: quote arguments with whitespace
Diffstat (limited to 'pkg/systemd/generate/pods_test.go')
-rw-r--r--pkg/systemd/generate/pods_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/systemd/generate/pods_test.go b/pkg/systemd/generate/pods_test.go
index 32c760956..8bf4705a7 100644
--- a/pkg/systemd/generate/pods_test.go
+++ b/pkg/systemd/generate/pods_test.go
@@ -75,7 +75,7 @@ Before=container-1.service container-2.service
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
ExecStartPre=/bin/rm -f %t/pod-123abc.pid %t/pod-123abc.pod-id
-ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --name foo --replace
+ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-123abc.pid --pod-id-file %t/pod-123abc.pod-id --name foo "bar=arg with space" --replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-123abc.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-123abc.pod-id -t 10
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-123abc.pod-id
@@ -118,7 +118,7 @@ WantedBy=multi-user.target default.target`
StopTimeout: 10,
PodmanVersion: "CI",
RequiredServices: []string{"container-1", "container-2"},
- CreateCommand: []string{"podman", "pod", "create", "--name", "foo"},
+ CreateCommand: []string{"podman", "pod", "create", "--name", "foo", "bar=arg with space"},
},
podGoodNamedNew,
true,