osmith has uploaded this change for review.
testenv: set args.podman = False if action != "run"
Fix "./testenv.py clean":
File "/home/user/code/osmo-dev/src/osmo-ttcn3-hacks/_testenv/testenv/cmd.py", line 85, in run
if not no_podman and testenv.args.podman:
^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'podman'
Change-Id: I44d5229aa481bfed13c006368d590e1486536c0e
---
M _testenv/testenv/__init__.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/85/37885/1
diff --git a/_testenv/testenv/__init__.py b/_testenv/testenv/__init__.py
index fe9a612..87485c7 100644
--- a/_testenv/testenv/__init__.py
+++ b/_testenv/testenv/__init__.py
@@ -145,6 +145,9 @@
if args.binary_repo and args.binary_repo.endswith(":latest"):
logging.debug("Binary repository ends in :latest, using latest configs")
args.latest = True
+ else:
+ # podman is only used in "testenv run"
+ args.podman = False
def verify_args_run():
To view, visit change 37885. To unsubscribe, or for help writing mail filters, visit settings.