summaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2019-12-12 08:48:37 -0700
committerEd Santiago <santiago@redhat.com>2019-12-12 08:56:44 -0700
commitebc4ae660d18e65dad3946018d3bd59605073227 (patch)
tree596c68fda9095524027f3a8a68863eb855e822c9 /test/system/helpers.bash
parentf81f15f42250a642f0753b5f18be61c1f24931dd (diff)
downloadpodman-ebc4ae660d18e65dad3946018d3bd59605073227.tar.gz
podman-ebc4ae660d18e65dad3946018d3bd59605073227.tar.bz2
podman-ebc4ae660d18e65dad3946018d3bd59605073227.zip
podman images history test - clean up
As initially written the test does not work other than in a CI environment because it relies on an empty tag history. Rewrite so we can guarantee that, by creating a new image. Also add slightly more helpful tests: the initial tests would just show "expected 0, got 1" which is unhelpful. Tweak so we test on actual history contents, which will show more informative messages on failure. And, finally, clean up after ourselves. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r--test/system/helpers.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index 8c061d2c9..940f3f426 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -36,7 +36,7 @@ function basic_setup() {
if [ "$1" == "$PODMAN_TEST_IMAGE_FQN" ]; then
found_needed_image=1
else
- echo "# setup(): removing stray images" >&3
+ echo "# setup(): removing stray images $1 $2" >&3
run_podman rmi --force "$1" >/dev/null 2>&1 || true
run_podman rmi --force "$2" >/dev/null 2>&1 || true
fi