diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2023-01-28 06:40:13 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-28 07:19:57 +0000 |
commit | deaca4f6d2dfced173ce19c15a19577672a41b6b (patch) | |
tree | eb3acf9ada534e034c18ecf666d30cbd8ebc07b0 /src/mongo/tools | |
parent | c0c24156d6899b5cac38a5c8f0ebc797a5bd566c (diff) | |
download | mongo-deaca4f6d2dfced173ce19c15a19577672a41b6b.tar.gz |
SERVER-73424 disable generating reports for mongo tidy check unittests.
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/mongo_tidy_checks/tests/MongoTidyCheck_unittest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/tools/mongo_tidy_checks/tests/MongoTidyCheck_unittest.py b/src/mongo/tools/mongo_tidy_checks/tests/MongoTidyCheck_unittest.py index 99ce4906d31..4af199d2a91 100644 --- a/src/mongo/tools/mongo_tidy_checks/tests/MongoTidyCheck_unittest.py +++ b/src/mongo/tools/mongo_tidy_checks/tests/MongoTidyCheck_unittest.py @@ -51,7 +51,7 @@ class MongoTidyTests(unittest.TestCase): else: print(msg) self.fail() - + with open(f'{os.path.splitext(self.compile_db)[0]}.results', 'w') as results: results.write(msg) @@ -65,12 +65,13 @@ class MongoTidyTests(unittest.TestCase): self.cmd = [ sys.executable, 'buildscripts/clang_tidy.py', + '--disable-reporting', f'--check-module={self.TIDY_MODULE}', f'--output-dir={os.path.join(os.path.dirname(compiledb), self._testMethodName + "_out")}', f'--compile-commands={self.compile_db}', ] else: - raise(f"ERROR: did not findh matching compiledb for {self._testMethodName}") + raise (f"ERROR: did not findh matching compiledb for {self._testMethodName}") def tearDown(self): if self.config_file: @@ -84,7 +85,7 @@ class MongoTidyTests(unittest.TestCase): Checks: '-*,mongo-test-check' WarningsAsErrors: '*' """)) - + self.expected_output = "ran mongo-test-check!" self.run_clang_tidy() |