|
|
|
|
|
|
|
|
new_cat_path.unlink() |
|
|
new_cat_path.unlink() |
|
|
if new_repo_dir.is_dir(): |
|
|
if new_repo_dir.is_dir(): |
|
|
shutil.rmtree(new_repo_dir) |
|
|
shutil.rmtree(new_repo_dir) |
|
|
dds_build( |
|
|
|
|
|
paths.CUR_BUILT_DDS, |
|
|
|
|
|
toolchain=opts.toolchain, |
|
|
|
|
|
more_flags=[ |
|
|
|
|
|
f'--repo-dir={new_repo_dir}', |
|
|
|
|
|
f'--catalog={new_cat_path}', |
|
|
|
|
|
'--add-repo=https://dds.pizza/repo', |
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
dds_build(paths.CUR_BUILT_DDS, |
|
|
|
|
|
toolchain=opts.toolchain, |
|
|
|
|
|
more_flags=[ |
|
|
|
|
|
f'--repo-dir={new_repo_dir}', |
|
|
|
|
|
f'--catalog={new_cat_path}', |
|
|
|
|
|
'--add-repo=https://dds.pizza/repo', |
|
|
|
|
|
]) |
|
|
print('Bootstrap test PASSED!') |
|
|
print('Bootstrap test PASSED!') |
|
|
|
|
|
|
|
|
|
|
|
basetemp = Path('/tmp/dds-ci') |
|
|
|
|
|
basetemp.mkdir(exist_ok=True, parents=True) |
|
|
return pytest.main([ |
|
|
return pytest.main([ |
|
|
'-v', |
|
|
'-v', |
|
|
'--durations=10', |
|
|
'--durations=10', |
|
|
f'--basetemp={paths.BUILD_DIR / "_tmp"}', |
|
|
|
|
|
'-n', |
|
|
'-n', |
|
|
str(multiprocessing.cpu_count() + 2), |
|
|
str(multiprocessing.cpu_count() + 2), |
|
|
'--basetemp=/tmp', # Force to use a top-level /tmp dir. On Windows this prevents paths from begin too long |
|
|
|
|
|
|
|
|
f'--basetemp={basetemp}', # Force to use a top-level /tmp dir. On Windows this prevents paths from begin too long |
|
|
'tests/', |
|
|
'tests/', |
|
|
]) |
|
|
]) |
|
|
|
|
|
|