|
37 | 37 | 'name': 'python_package', |
38 | 38 | 'description': 'Package with python code', |
39 | 39 | }, |
40 | | -] |
41 | | -OTHER_TESTS_OPTIONS = [ |
42 | 40 | { |
43 | 41 | 'name': 'python_package_symlink', |
44 | 42 | 'description': 'Package with python code, installed with symlink in build', |
@@ -160,8 +158,6 @@ def do_build_package(package_name, options=None, base_prefix=SOURCE_DIR / 'test' |
160 | 158 |
|
161 | 159 |
|
162 | 160 | def do_test_package(package_name, options): |
163 | | - print(f"Testing package {package_name} PWD tree:") |
164 | | - list_files(str(PWD)) |
165 | 161 | if options['destination']: |
166 | 162 | install_path = PWD / INSTALL_BASE / package_name / options['destination'] / package_name |
167 | 163 | else: |
@@ -204,18 +200,3 @@ def do_test_package(package_name, options): |
204 | 200 | print(f"Testing script installed in package {package_name}") |
205 | 201 | script_path = PWD / INSTALL_BASE / package_name / options['scripts_destination'] / 'do_something' |
206 | 202 | assert script_path.exists(), f"script do_something does not exist for {package_name}: {script_path}" |
207 | | - |
208 | | - # If we got this far, the test passed, but we want to see output. |
209 | | - assert(False) |
210 | | - |
211 | | -def list_files(startpath): |
212 | | - # Adapted from https://stackoverflow.com/a/9727671 |
213 | | - for root, dirs, files in os.walk(startpath): |
214 | | - level = root.replace(startpath, '').count(os.sep) |
215 | | - indent = ' ' * 4 * (level) |
216 | | - print('{}{}/'.format(indent, os.path.basename(root))) |
217 | | - subindent = ' ' * 4 * (level + 1) |
218 | | - for f in files: |
219 | | - root, ext = os.path.splitext(f) |
220 | | - if ext not in ['.pyc', '.pyo', '.c', '.cpp', '.h', '.hpp', '.cmake','.so', '.sh', '.dsv', '.ps1']: |
221 | | - print('{}{}'.format(subindent, f)) |
0 commit comments