From 6012e873b55014b17771e05ff1b6d3500dfa2831 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Fri, 7 Feb 2020 08:16:35 +0100 Subject: [PATCH] ignore successfull 4 byte clang tidy report --- scripts/phabtalk/phabtalk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/phabtalk/phabtalk.py b/scripts/phabtalk/phabtalk.py index ef25397..d18cec1 100755 --- a/scripts/phabtalk/phabtalk.py +++ b/scripts/phabtalk/phabtalk.py @@ -291,7 +291,7 @@ class BuildReport: self.comments.append(section_title('clang-tidy', False, False)) return p = os.path.join(self.results_dir, self.clang_tidy_result) - if os.stat(p).st_size != 0: + if os.stat(p).st_size > 4: self.api.add_artifact(self.ph_id, self.clang_tidy_result, "clang-tidy", self.results_url) ignore = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, open(self.clang_tidy_ignore, 'r').readlines())