diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2023-11-06 18:30:00 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2023-11-07 21:52:14 +0200 |
commit | 2ea284bac1dce5ac659aaaa68f4c36f6278ed340 (patch) | |
tree | 0645cf1b3fb145d12222209b947c552dd1c53b6c /run_format_tests.py | |
parent | 686963f1c247442e01787a276879391aa64e41c2 (diff) | |
download | meson-2ea284bac1dce5ac659aaaa68f4c36f6278ed340.zip meson-2ea284bac1dce5ac659aaaa68f4c36f6278ed340.tar.gz meson-2ea284bac1dce5ac659aaaa68f4c36f6278ed340.tar.bz2 |
Prohibit symlinks in test data dir because they get mangled by setup.py.
Diffstat (limited to 'run_format_tests.py')
-rwxr-xr-x[-rw-r--r--] | run_format_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run_format_tests.py b/run_format_tests.py index 70fa121..ca3e715 100644..100755 --- a/run_format_tests.py +++ b/run_format_tests.py @@ -75,9 +75,17 @@ def check_format() -> None: continue check_file(root / file) +def check_symlinks(): + for f in Path('test cases').glob('**/*'): + if f.is_symlink(): + if 'boost symlinks' in str(f): + continue + raise SystemExit(f'Test data dir contains symlink: {f}.') + if __name__ == '__main__': script_dir = os.path.split(__file__)[0] if script_dir != '': os.chdir(script_dir) check_format() + check_symlinks() |