diff options
author | TomSweeneyRedHat <tsweeney@redhat.com> | 2018-02-01 14:13:52 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-08 22:14:36 +0000 |
commit | bf981fc8738ec5910efd54117677f8eacb7ca37e (patch) | |
tree | 06492feee03c3449ad6721670ff101127f992706 /test/e2e/libpod_suite_test.go | |
parent | 9e3a5da69d69df223b9f9b8116ad536de3dcb791 (diff) | |
download | podman-bf981fc8738ec5910efd54117677f8eacb7ca37e.tar.gz podman-bf981fc8738ec5910efd54117677f8eacb7ca37e.tar.bz2 podman-bf981fc8738ec5910efd54117677f8eacb7ca37e.zip |
Update pause tests per QE suggestions and move to gingko
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Closes: #285
Approved by: mheon
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r-- | test/e2e/libpod_suite_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
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() +} |