diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-15 12:15:11 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-16 16:37:02 +0200 |
commit | 3ac3e125e4f3f74d95bdb20094ff4378dc10c872 (patch) | |
tree | 24f8551ad4a01e575b60040611a908c883256c71 /run_project_tests.py | |
parent | 5cd7f5f8c5e374348e55b791caf01604c238f3e5 (diff) | |
download | meson-3ac3e125e4f3f74d95bdb20094ff4378dc10c872.zip meson-3ac3e125e4f3f74d95bdb20094ff4378dc10c872.tar.gz meson-3ac3e125e4f3f74d95bdb20094ff4378dc10c872.tar.bz2 |
Delete leftover files from some tests.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 977c0c4..149caa2 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1306,6 +1306,14 @@ def print_tool_versions(): print('{0:<{2}}: {1}'.format(tool['tool'], get_version(tool), max_width)) print() +def clear_transitive_files(): + a = Path('test cases/common') + for d in a.glob('*subproject subdir/subprojects/subsubsub*'): + if d.is_dir(): + mesonlib.windows_proof_rmtree(d) + else: + mesonlib.windows_proof_rm(str(d)) + if __name__ == '__main__': parser = argparse.ArgumentParser(description="Run the test suite of Meson.") parser.add_argument('extra_args', nargs='*', @@ -1326,6 +1334,8 @@ if __name__ == '__main__': if options.native_file: options.extra_args += ['--native-file', options.native_file] + clear_transitive_files() + print('Meson build system', meson_version, 'Project Tests') print('Using python', sys.version.split('\n')[0]) setup_commands(options.backend) @@ -1357,4 +1367,5 @@ if __name__ == '__main__': tests = list(g) if len(tests) != 1: print('WARNING: The {} suite contains duplicate "{}" tests: "{}"'.format(name, k, '", "'.join(tests))) + clear_transitive_files() raise SystemExit(failing_tests) |