Skip to content

Commit 06055cd

Browse files
committed
test/e2e: podman update make env check stricter
We don't need a tty here and then we are able to check for the exact output. Signed-off-by: Paul Holzinger <[email protected]>
1 parent 161802d commit 06055cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/update_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ var _ = Describe("Podman update", func() {
250250
testCtr := "test-ctr-name"
251251

252252
// Test that the variable is not set.
253-
ctr1 := podmanTest.Podman([]string{"run", "-t", "--name", testCtr, ALPINE, "printenv", "FOO"})
253+
ctr1 := podmanTest.Podman([]string{"run", "--name", testCtr, ALPINE, "printenv", "FOO"})
254254
ctr1.WaitWithDefaultTimeout()
255255
Expect(ctr1).Should(Exit(1))
256256

@@ -263,7 +263,7 @@ var _ = Describe("Podman update", func() {
263263
session.WaitWithDefaultTimeout()
264264
Expect(session).Should(ExitCleanly())
265265
env := session.OutputToString()
266-
Expect(env).To(ContainSubstring("BAR"))
266+
Expect(env).To(Equal("BAR"))
267267

268268
session = podmanTest.Podman([]string{"inspect", testCtr, "--format", "{{.Config.Env}}"})
269269
session.WaitWithDefaultTimeout()
@@ -281,7 +281,7 @@ var _ = Describe("Podman update", func() {
281281
session.WaitWithDefaultTimeout()
282282
Expect(session).Should(ExitCleanly())
283283
env = session.OutputToString()
284-
Expect(env).To(ContainSubstring("RAB"))
284+
Expect(env).To(Equal("RAB"))
285285

286286
session = podmanTest.Podman([]string{"inspect", testCtr, "--format", "{{.Config.Env}}"})
287287
session.WaitWithDefaultTimeout()

0 commit comments

Comments
 (0)