From 0038a8da6a2e0dc625d02c227fc4d402833c235c Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Mon, 2 May 2022 17:38:36 +0300 Subject: [PATCH] Simpler julia test --- tests/datascience-notebook/test_julia.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/datascience-notebook/test_julia.py b/tests/datascience-notebook/test_julia.py index d7526ea2..5ed9d1dc 100644 --- a/tests/datascience-notebook/test_julia.py +++ b/tests/datascience-notebook/test_julia.py @@ -10,12 +10,9 @@ LOGGER = logging.getLogger(__name__) def test_julia(container: TrackedContainer) -> None: """Basic julia test""" LOGGER.info("Test that julia is correctly installed ...") - running_container = container.run_detached( + logs = container.run_and_wait( + timeout=5, tty=True, - command=["start.sh", "bash", "-c", "sleep infinity"], + command=["start.sh", "bash", "-c", "julia --version"], ) - command = "julia --version" - cmd = running_container.exec_run(command) - output = cmd.output.decode("utf-8") - LOGGER.debug(output) - assert cmd.exit_code == 0, f"Command {command} failed {output}" + LOGGER.debug(logs)