mirror of
https://github.com/containers/podman.git
synced 2025-11-02 23:39:52 +08:00
Update pause tests per QE suggestions and move to gingko
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #285 Approved by: mheon
This commit is contained in:
committed by
Atomic Bot
parent
9e3a5da69d
commit
bf981fc873
@ -439,3 +439,13 @@ func (s *PodmanSession) LineInOuputContains(term string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
//GetContainerStatus returns the containers state.
|
||||
// This function assumes only one container is active.
|
||||
func (p *PodmanTest) GetContainerStatus() string {
|
||||
var podmanArgs = []string{"ps"}
|
||||
podmanArgs = append(podmanArgs, "--all", "--format={{.Status}}")
|
||||
session := p.Podman(podmanArgs)
|
||||
session.WaitWithDefaultTimeout()
|
||||
return session.OutputToString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user