From: Alex Bennée Date: Fri, 13 Nov 2020 17:44:04 +0000 (+0000) Subject: .gitlab-ci.d/check-patch: tweak output for CI logs X-Git-Tag: v5.2.0-rc2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7025111a199b97ae806817788bec50f456c47d85;p=thirdparty%2Fqemu.git .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 Reviewed-by: Daniel P. Berrangé Message-Id: <20201113174404.19608-1-alex.bennee@linaro.org> --- diff --git a/.gitlab-ci.d/check-patch.py b/.gitlab-ci.d/check-patch.py index 0ff30ee0774..39e2b403c9e 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")