Skip to content

Commit

Permalink
test/e2e: run system reset test serial
Browse files Browse the repository at this point in the history
USe the new ginkgo `Serial` decorator to make sure system reset is
never executed in parallel. system reset stops teh rootless pause
process which causes major issues when other process in parallel still
use this old namesapce.

Fixes #17903

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed May 2, 2023
1 parent c5922cc commit 054154c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/e2e/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,8 @@ RUN ls /dev/test1`, ALPINE)
Expect(build).To(Exit(0))
})

It("podman system reset must clean host shared cache", func() {
// system reset must run serial: https://github.com/containers/podman/issues/17903
It("podman system reset must clean host shared cache", Serial, func() {
SkipIfRemote("podman-remote does not have system reset -f")
useCustomNetworkDir(podmanTest, tempdir)
podmanTest.AddImageToRWStore(ALPINE)
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/system_reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
. "github.com/onsi/gomega/gexec"
)

var _ = Describe("podman system reset", func() {
// system reset must run serial: https://github.com/containers/podman/issues/17903
var _ = Describe("podman system reset", Serial, func() {
var (
tempdir string
err error
Expand Down

0 comments on commit 054154c

Please sign in to comment.