Ver Fonte

.gitlab-ci.d/check-patch: tweak output for CI logs

We don't need running commentary for the CI logs and by keeping it
short we might just see the problem on the first page. While we are at
it flush the previous line so order is maintained between script and
sub process.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20201113174404.19608-1-alex.bennee@linaro.org>
Alex Bennée há 4 anos atrás
pai
commit
7025111a19
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      .gitlab-ci.d/check-patch.py

+ 2 - 2
.gitlab-ci.d/check-patch.py

@@ -45,9 +45,9 @@
 
 
 errors = False
 errors = False
 
 
-print("\nChecking all commits since %s...\n" % ancestor)
+print("\nChecking all commits since %s...\n" % ancestor, flush=True)
 
 
-ret = subprocess.run(["scripts/checkpatch.pl", ancestor + "..."])
+ret = subprocess.run(["scripts/checkpatch.pl", "--terse", ancestor + "..."])
 
 
 if ret.returncode != 0:
 if ret.returncode != 0:
     print("    ❌ FAIL one or more commits failed scripts/checkpatch.pl")
     print("    ❌ FAIL one or more commits failed scripts/checkpatch.pl")