diff options
author | Robert Guo <robert.guo@mongodb.com> | 2021-10-14 12:22:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-14 13:07:29 +0000 |
commit | 4002c5b76ff7482bd1f93f031fae39c8ee4026dc (patch) | |
tree | bd5d1d064dcc67333e1c030ea492c599ab730f9e /buildscripts/linter | |
parent | 52be114ab53ba1be2696d4c7c417e6d2e44eaf62 (diff) | |
download | mongo-4002c5b76ff7482bd1f93f031fae39c8ee4026dc.tar.gz |
SERVER-60633 burn_in_tests should respect multiversion tags
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/runner.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/buildscripts/linter/runner.py b/buildscripts/linter/runner.py index 623a3c4295e..46680865f92 100644 --- a/buildscripts/linter/runner.py +++ b/buildscripts/linter/runner.py @@ -187,6 +187,8 @@ class LintRunner(object): logging.debug(' '.join(cmd)) + no_lint_errors = True + try: if linter.linter.needs_file_diff(): # Need a file diff @@ -212,15 +214,15 @@ class LintRunner(object): if count == 0: print("ERROR: The files only differ in trailing whitespace? LF vs CRLF") - return False + no_lint_errors = False else: subprocess.check_output(cmd).decode('utf-8') except subprocess.CalledProcessError as cpe: self._safe_print("CMD [%s] failed:\n%s" % (' '.join(cmd), cpe.output.decode('utf-8'))) - return False + no_lint_errors = False - return True + return no_lint_errors def run(self, cmd): # type: (List[str]) -> bool |