osmith submitted this change.

View Change

Approvals: pespin: Looks good to me, approved osmith: Verified
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(-)

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.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I44d5229aa481bfed13c006368d590e1486536c0e
Gerrit-Change-Number: 37885
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>