mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Don't fail silently when integration-test commands fail
This will lead to tests reported as passing even when they are actually failing.
This commit is contained in:
@@ -57,12 +57,7 @@ def run_container_command(container_name, cmd):
|
||||
'docker', 'exec',
|
||||
'-it', container_name,
|
||||
'/bin/bash', '-c', cmd
|
||||
])
|
||||
|
||||
if proc.returncode != 0:
|
||||
# Don't throw if command fails. This lets us continue next parts
|
||||
# of tests. Not entirely sure this is the right thing to do though!
|
||||
print(f'command {cmd} exited with return code {proc.returncode}')
|
||||
], check=True)
|
||||
|
||||
|
||||
def copy_to_container(container_name, src_path, dest_path):
|
||||
|
||||
Reference in New Issue
Block a user