Do not rewrite variable with another value

This commit is contained in:
Ayaz Salikhov
2024-01-23 13:11:02 +01:00
parent 009821cdb3
commit 7a5990be1f

View File

@@ -38,11 +38,10 @@ def test_matplotlib(
cont_data_dir = "/home/jovyan/data" cont_data_dir = "/home/jovyan/data"
output_dir = "/tmp" output_dir = "/tmp"
LOGGER.info(description) LOGGER.info(description)
command = "sleep infinity"
running_container = container.run_detached( running_container = container.run_detached(
volumes={str(host_data_dir): {"bind": cont_data_dir, "mode": "ro"}}, volumes={str(host_data_dir): {"bind": cont_data_dir, "mode": "ro"}},
tty=True, tty=True,
command=["bash", "-c", command], command=["bash", "-c", "sleep infinity"],
) )
command = f"python {cont_data_dir}/{test_file}" command = f"python {cont_data_dir}/{test_file}"
cmd = running_container.exec_run(command) cmd = running_container.exec_run(command)