mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 12:02:56 +00:00
Simpler julia test
This commit is contained in:
@@ -10,12 +10,9 @@ LOGGER = logging.getLogger(__name__)
|
|||||||
def test_julia(container: TrackedContainer) -> None:
|
def test_julia(container: TrackedContainer) -> None:
|
||||||
"""Basic julia test"""
|
"""Basic julia test"""
|
||||||
LOGGER.info("Test that julia is correctly installed ...")
|
LOGGER.info("Test that julia is correctly installed ...")
|
||||||
running_container = container.run_detached(
|
logs = container.run_and_wait(
|
||||||
|
timeout=5,
|
||||||
tty=True,
|
tty=True,
|
||||||
command=["start.sh", "bash", "-c", "sleep infinity"],
|
command=["start.sh", "bash", "-c", "julia --version"],
|
||||||
)
|
)
|
||||||
command = "julia --version"
|
LOGGER.debug(logs)
|
||||||
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}"
|
|
||||||
|
Reference in New Issue
Block a user