mirror of https://github.com/containers/podman.git
stop podman service in e2e tests
when running e2e tests, each test knows to stop its service when running remote; however, during setup and teardown remote services were not being killed when we were done with them. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
parent
c131567401
commit
a0599b77b7
|
@ -143,6 +143,12 @@ var _ = SynchronizedBeforeSuite(func() []byte {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If running remote, we need to stop the associated podman system service
|
||||||
|
if podman.RemoteTest {
|
||||||
|
podman.StopRemoteService()
|
||||||
|
}
|
||||||
|
|
||||||
return []byte(path)
|
return []byte(path)
|
||||||
}, func(data []byte) {
|
}, func(data []byte) {
|
||||||
LockTmpDir = string(data)
|
LockTmpDir = string(data)
|
||||||
|
@ -173,6 +179,10 @@ var _ = SynchronizedAfterSuite(func() {},
|
||||||
fmt.Printf("%q\n", err)
|
fmt.Printf("%q\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If running remote, we need to stop the associated podman system service
|
||||||
|
if podmanTest.RemoteTest {
|
||||||
|
podmanTest.StopRemoteService()
|
||||||
|
}
|
||||||
// for localized tests, this removes the image cache dir and for remote tests
|
// for localized tests, this removes the image cache dir and for remote tests
|
||||||
// this is a no-op
|
// this is a no-op
|
||||||
removeCache()
|
removeCache()
|
||||||
|
|
Loading…
Reference in New Issue