mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Don't copy everyhting
This commit is contained in:
@@ -85,19 +85,20 @@ def run_test(image_name, test_name, test_files, installer_args):
|
||||
os.path.join(os.path.dirname(__file__), os.pardir)
|
||||
)
|
||||
|
||||
copy_to_container(test_name, source_path, '/srv/src')
|
||||
copy_to_container(test_name, os.path.join(source_path, 'bootstrap/'), '/srv/src')
|
||||
run_container_command(
|
||||
test_name,
|
||||
f'python3 /srv/src/bootstrap/bootstrap.py {installer_args}'
|
||||
f'python3 /srv/src/bootstrap.py {installer_args}'
|
||||
)
|
||||
copy_to_container(test_name, os.path.join(source_path, 'integration-tests/'), '/srv/src')
|
||||
run_container_command(
|
||||
test_name,
|
||||
'python3 -m pip install -r /srv/src/integration-tests/requirements.txt'
|
||||
'python3 -m pip install -r /srv/src/requirements.txt'
|
||||
)
|
||||
run_container_command(
|
||||
test_name,
|
||||
'python3 -m pytest -v {}'.format(
|
||||
' '.join([os.path.join('/srv/src/integration-tests/', f) for f in test_files])
|
||||
' '.join([os.path.join('/srv/src/', f) for f in test_files])
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user