Skip to content

Commit

Permalink
*-docker-debug targets: enter container again with .venv activated
Browse files Browse the repository at this point in the history
Change-Id: Ib7432f45311281b1a6e1c2c880a8cc8b5843c761
  • Loading branch information
TimotheusBachinger committed Jan 14, 2025
1 parent c6caed1 commit 058f21b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/testlib/script_helpers/dockerized_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ def execute_tests_in_container(
dockerpty.exec_command(
client.api,
container.id,
["sudo", "su", _TESTUSER, "-c", "source /git/.venv/bin/activate; bash"],
[
"sudo",
"su",
"--pty",
"-",
_TESTUSER,
"-c",
"source /git/.venv/bin/activate; bash",
],
)

return 0
Expand Down

0 comments on commit 058f21b

Please sign in to comment.