diff options
author | Ed Santiago <santiago@redhat.com> | 2020-10-19 07:59:02 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-10-19 08:43:56 -0600 |
commit | b23d430516a20f0274c200c2d67bf0e1b05bff18 (patch) | |
tree | d34dfbcf3fdc58fa4d48e0857e0549965a73fb3c /test/system/055-rm.bats | |
parent | 7ffcab0854342844a44b2668bd9d98849bf935c8 (diff) | |
download | podman-b23d430516a20f0274c200c2d67bf0e1b05bff18.tar.gz podman-b23d430516a20f0274c200c2d67bf0e1b05bff18.tar.bz2 podman-b23d430516a20f0274c200c2d67bf0e1b05bff18.zip |
System tests: remove some misleading 'run's
The BATS 'run' directive is really quite obnoxious; for the
most part we really don't want to use it. Remove some uses
that snuck in last week, and remove one test (exists) that
can more naturally be piggybacked into an rm test.
While we're at it: in setup(), look for and delete stray
external (buildah) containers. This will be important if
any of the external-container tests fails; this way we
don't leave behind a state that causes subsequent tests
to fail.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/055-rm.bats')
-rw-r--r-- | test/system/055-rm.bats | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/system/055-rm.bats b/test/system/055-rm.bats index 7176ae4b8..0107114b5 100644 --- a/test/system/055-rm.bats +++ b/test/system/055-rm.bats @@ -41,11 +41,14 @@ load helpers run_podman create --name $rand $IMAGE /bin/true # Create a container that podman does not know about - run buildah from $IMAGE - cid="$output" + external_cid=$(buildah from $IMAGE) + + # Plain 'exists' should fail, but should succeed with --external + run_podman 1 container exists $external_cid + run_podman container exists --external $external_cid # rm should succeed - run_podman rm $rand $cid + run_podman rm $rand $external_cid } # I'm sorry! This test takes 13 seconds. There's not much I can do about it, |