From adfcdf581435d683456c43f93005286a95650a30 Mon Sep 17 00:00:00 2001 From: Merlin Mathesius Date: Jun 24 2020 13:46:27 +0000 Subject: Minor CI output improvements Signed-off-by: Merlin Mathesius --- diff --git a/cccc/__main__.py b/cccc/__main__.py index 061897a..86f3224 100644 --- a/cccc/__main__.py +++ b/cccc/__main__.py @@ -1,6 +1,7 @@ # SPDX-License-Identifier: MIT import argparse +import os import sys import cccc.cli @@ -96,6 +97,9 @@ def main(argv=None): or args.pr_mod_defaults_repo): parser.error("at least one PR parameter must be provided") + # unbuffer stdout for the benefit of following the CI log + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', buffering=0) + return cccc.cli.run(args) diff --git a/contrib/scripts/delete-old-branches.sh b/contrib/scripts/delete-old-branches.sh index ac60368..4a66c88 100755 --- a/contrib/scripts/delete-old-branches.sh +++ b/contrib/scripts/delete-old-branches.sh @@ -50,7 +50,7 @@ fi e_now=$(date +"%s") workdir=`mktemp -d` -git clone "$repo" "$workdir" +git clone -q "$repo" "$workdir" pushd "$workdir" >/dev/null branches=$(git branch -r --no-merged)