aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2020-11-13 17:44:04 +0000
committerAlex Bennée <alex.bennee@linaro.org>2020-11-16 11:08:40 +0000
commit7025111a199b97ae806817788bec50f456c47d85 (patch)
treeac5e17e594a76fbe3185566cbb7dd89c9ebcadd6 /.gitlab-ci.d
parentb48580ad92c43e6bdc381d467a9fb67869864a04 (diff)
.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>
Diffstat (limited to '.gitlab-ci.d')
-rwxr-xr-x.gitlab-ci.d/check-patch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.d/check-patch.py b/.gitlab-ci.d/check-patch.py
index 0ff30ee077..39e2b403c9 100755
--- a/.gitlab-ci.d/check-patch.py
+++ b/.gitlab-ci.d/check-patch.py
@@ -45,9 +45,9 @@ if log == "":
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:
print(" ❌ FAIL one or more commits failed scripts/checkpatch.pl")