summaryrefslogtreecommitdiff
path: root/test/python/docker/__init__.py
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-07-15 12:13:15 -0600
committerEd Santiago <santiago@redhat.com>2021-07-16 05:05:59 -0600
commitbe51173ed39c2d16205b0469287b5d6a7271c2c5 (patch)
tree1f7593fea2ece1adc2cbbf02c3e1178b9557a54d /test/python/docker/__init__.py
parentf0cd16cb32676eaf5ee337b50e8628f2f49ccce9 (diff)
downloadpodman-be51173ed39c2d16205b0469287b5d6a7271c2c5.tar.gz
podman-be51173ed39c2d16205b0469287b5d6a7271c2c5.tar.bz2
podman-be51173ed39c2d16205b0469287b5d6a7271c2c5.zip
APIv2 (python) tests: fix flake
Python tests were flaking because they behave differently when $DEBUG is set. It looks like something in CI sets that envariable. Solution: do not use $DEBUG as a debug trigger, use a properly-named custom variable that is unlikely to be set accidentally. Also: get rid of AssertTrue(), which gives no visibility into what happened. Write in proper form that can emit useful diagnostics on failure. Fixes: #10948 Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/python/docker/__init__.py')
-rw-r--r--test/python/docker/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/python/docker/__init__.py b/test/python/docker/__init__.py
index 59b7987f4..f75185192 100644
--- a/test/python/docker/__init__.py
+++ b/test/python/docker/__init__.py
@@ -27,7 +27,7 @@ class Podman(object):
# No support for tmpfs (/tmp) or extfs (/var/tmp)
# self.cmd.append("--storage-driver=overlay")
- if os.getenv("DEBUG"):
+ if os.getenv("PODMAN_PYTHON_TEST_DEBUG"):
self.cmd.append("--log-level=debug")
self.cmd.append("--syslog=true")