From bf981fc8738ec5910efd54117677f8eacb7ca37e Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Thu, 1 Feb 2018 14:13:52 -0500 Subject: Update pause tests per QE suggestions and move to gingko Signed-off-by: TomSweeneyRedHat Closes: #285 Approved by: mheon --- test/e2e/libpod_suite_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/e2e/libpod_suite_test.go') diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index e6f110dad..b8e650e30 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -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() +} -- cgit v1.2.3-54-g00ecf