diff options
author | Bernd Busse <bernd@busse-net.de> | 2020-10-03 19:58:55 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-05 23:07:20 +0300 |
commit | c4fa87692547a25f772b3da336147b4eb9114f64 (patch) | |
tree | ea64ecc8187bcc1315d82083aba163ebb680b417 /run_unittests.py | |
parent | 4b1c1d83c88853a6be99b53e4d27c414b7b36137 (diff) | |
download | meson-c4fa87692547a25f772b3da336147b4eb9114f64.zip meson-c4fa87692547a25f772b3da336147b4eb9114f64.tar.gz meson-c4fa87692547a25f772b3da336147b4eb9114f64.tar.bz2 |
Never run clang-format / clang-tidy against directories
`pathlib.Path.glob()` also returns directories that match source
filenames (i.e. a directory named `test.h/`), but `clang-format` and
`clang-tidy` fail when handed a directory. We manually skip calling
`clang-format` and `clang-tidy` on those directories.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 1fd436d..0385404 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4212,9 +4212,11 @@ recommended as it is not supported on some platforms''') if is_osx(): raise unittest.SkipTest('Apple ships a broken clang-tidy that chokes on -pipe.') testdir = os.path.join(self.unit_test_dir, '70 clang-tidy') + dummydir = os.path.join(testdir, 'dummydir.h') self.init(testdir, override_envvars={'CXX': 'c++'}) out = self.run_target('clang-tidy') self.assertIn('cttest.cpp:4:20', out) + self.assertNotIn(dummydir, out) def test_identity_cross(self): testdir = os.path.join(self.unit_test_dir, '71 cross') |