Skip to content

Commit

Permalink
Docker: Pass environment variable to aiida-prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 4, 2023
1 parent 3149178 commit 6024f7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker/aiida-core-base/s6-assets/s6-rc.d/aiida-prepare/up
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/command/execlineb -S0

with-contenv

foreground { s6-echo "Calling /etc/init/aiida-prepare" }
/etc/init/aiida-prepare.sh
5 changes: 5 additions & 0 deletions .docker/tests/test_aiida.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ def test_verdi_status(aiida_exec, container_user, timeout):

# check that we have suppressed the warnings
assert 'Warning' not in output

def test_computer_setup_success(aiida_exec, container_user, timeout):
time.sleep(timeout)
output = aiida_exec('verdi computer show localhost', user=container_user).decode().strip()
assert f'/home/{container_user}/aiida_run' in output

0 comments on commit 6024f7c

Please sign in to comment.