From b23d430516a20f0274c200c2d67bf0e1b05bff18 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 19 Oct 2020 07:59:02 -0600 Subject: 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 --- test/system/030-run.bats | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'test/system/030-run.bats') diff --git a/test/system/030-run.bats b/test/system/030-run.bats index f7c48da8d..28dc7c7a7 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -460,24 +460,4 @@ json-file | f is "$output" "$expect" "podman run with --tz=local, matches host" } -@test "podman container exists" { - rand=$(random_string 30) - run_podman 1 container exists myctr - - run_podman create --name myctr $IMAGE /bin/true - run_podman container exists myctr - - # Create a container that podman does not know about - run buildah from $IMAGE - cid="$output" - - # exists should fail - run_podman 1 container exists $cid - - # exists should succeed - run_podman container exists --external $cid - - run buildah rm $cid -} - # vim: filetype=sh -- cgit v1.2.3-54-g00ecf