osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43848?usp=email )

Change subject: testenv: use proper envtype for --shell
......................................................................

testenv: use proper envtype for --shell

When using --podman --shell to run an interactive shell after the
testsuite is done (for debugging), use the proper envtype depending on
--binary-repo being used or not, instead of always assuming the
binary-repo envtype.

Fixes: b728a7fb ("testenv: cmd: init_env: split up by envtype")
Change-Id: I7ef93c452a0696a18e0875e40465ef5c985f6e86
---
M _testenv/testenv/podman.py
1 file changed, 8 insertions(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/_testenv/testenv/podman.py b/_testenv/testenv/podman.py
index 7b5e734..f6264d5 100644
--- a/_testenv/testenv/podman.py
+++ b/_testenv/testenv/podman.py
@@ -367,7 +367,14 @@
         logging.info("Running interactive shell before stopping container 
(--shell)")

         # stdin=None: override stdin=/dev/null, so we can type into the shell
-        exec_cmd(["bash"], ["-i"], cwd=testenv.testdir.testdir, stdin=None, 
check=False)
+        exec_cmd(
+            ["bash"],
+            ["-i"],
+            cwd=testenv.testdir.testdir,
+            stdin=None,
+            check=False,
+            envtype="binary_repo" if testenv.args.binary_repo else "osmo_dev",
+        )

         run_shell_on_stop = False


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43848?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I7ef93c452a0696a18e0875e40465ef5c985f6e86
Gerrit-Change-Number: 43848
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to