spiegel_podman/test/utils
Miloslav Trmač a0bb9ef9b3
Introduce PodmanTestIntegration.PodmanExitCleanly
This significantly simplifies the ceromony of running a Podman command
in integration tests, from

> session := p.Podman([]string{"stop", id})
> session.WaitWithDefaultTimeout()
> Expect(session).Should(ExitCleanly())

to
> p.PodmanExitCleanly("stop", id)

There are >4650 instances of ExitCleanly() in the tests,
and many could be migrated; this does not do that.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
(cherry picked from commit 0c18beaea7)
Conflicts resolved with the assistance of AI: Cursor <auto>
Signed-off-by: Chris Evich <cevich@redhat.com>
2026-04-13 10:28:34 -04:00
..
common_function_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
matchers.go Introduce PodmanTestIntegration.PodmanExitCleanly 2026-04-13 10:28:34 -04:00
podmansession_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
podmantest_test.go fix broken hooks-dir test 2022-04-29 14:06:54 +02:00
utils.go Update the registry server we test against from 2.6 to 2.8 2022-08-02 16:52:56 +02:00
utils_suite_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00