From 6a9dcda59b7728561f1f4b77ce120a80680207ca Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Sat, 14 Oct 2023 03:46:53 +0100 Subject: [PATCH] now? --- tests_notebooks/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests_notebooks/conftest.py b/tests_notebooks/conftest.py index cefe040c8..e2e3ed394 100644 --- a/tests_notebooks/conftest.py +++ b/tests_notebooks/conftest.py @@ -44,9 +44,9 @@ def aiidalab_exec(docker_compose): def execute(command, user=None, **kwargs): workdir = "/home/jovyan/apps/aiidalab-widgets-base" if user: - command = f"exec --workdir {workdir} -T --user={user} aiidalab '{command}'" + command = f"exec --workdir {workdir} -T --user={user} aiidalab {command}" else: - command = f"exec --workdir {workdir} -T aiidalab '{command}'" + command = f"exec --workdir {workdir} -T aiidalab {command}" return docker_compose.execute(command, **kwargs) @@ -61,7 +61,7 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec): aiidalab_exec("chmod -R a+rw /home/jovyan/apps/aiidalab-widgets-base", user="root") # Install AWB with extra dependencies for SmilesWidget - aiidalab_exec("free -m; pip install --no-cache-dir .[smiles]") + aiidalab_exec("bash -c 'free -m; pip install --no-cache-dir .[smiles]'") # `port_for` takes a container port and returns the corresponding host port port = docker_services.port_for("aiidalab", 8888)