From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C46D139083 for ; Fri, 15 Dec 2017 03:45:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1DFD1E0FF7; Fri, 15 Dec 2017 03:45:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EFDE4E0FF7 for ; Fri, 15 Dec 2017 03:45:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 458C133BF0F for ; Fri, 15 Dec 2017 03:45:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB3A8AE87 for ; Fri, 15 Dec 2017 03:45:17 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1513309481.b7e493b4e4ad6cf6f9367e4b139df042526c21de.robbat2@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: tools/ X-VCS-Repository: proj/releng X-VCS-Files: tools/catalyst-auto X-VCS-Directories: tools/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: b7e493b4e4ad6cf6f9367e4b139df042526c21de X-VCS-Branch: master Date: Fri, 15 Dec 2017 03:45:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2eea33a0-6723-477e-b6d6-f7e2e165e0e2 X-Archives-Hash: 741fd68ba47b3043eb15b724aa876bfa commit: b7e493b4e4ad6cf6f9367e4b139df042526c21de Author: Robin H. Johnson gentoo org> AuthorDate: Fri Dec 15 03:44:41 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Fri Dec 15 03:44:41 2017 +0000 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=b7e493b4 catalyst-auto: run trigger_post_build after every successful spec, to export results sooner. Signed-off-by: Robin H. Johnson gentoo.org> tools/catalyst-auto | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tools/catalyst-auto b/tools/catalyst-auto index 35443c4a..f605873c 100755 --- a/tools/catalyst-auto +++ b/tools/catalyst-auto @@ -115,6 +115,13 @@ catalyst_var() { (. "${CATALYST_CONFIG}"; echo "${!var}") } +trigger_post_build() { + if ! run_cmd "${TMPDIR}/log/post_build.log" post_build; then + send_email "Catalyst build error - post_build" "The post_build function failed" "${TMPDIR}/log/post_build.log" + exit 1 + fi +} + # Parse args while [ ${#} -gt 0 ] do @@ -334,6 +341,8 @@ for a in "" ${SETS}; do build_failure=1 send_email "Catalyst fatal build error - ${i}" "" "${LOGFILE}" continue 2 + else + trigger_post_build fi done @@ -344,6 +353,8 @@ for a in "" ${SETS}; do build_failure=1 send_email "Catalyst non-fatal build error - ${i}" "" "${LOGFILE}" break + else + trigger_post_build fi done @@ -355,10 +366,7 @@ for a in "" ${SETS}; do update_symlinks done -if ! run_cmd "${TMPDIR}/log/post_build.log" post_build; then - send_email "Catalyst build error - post_build" "The post_build function failed" "${TMPDIR}/log/post_build.log" - exit 1 -fi +trigger_post_build if [ ${build_failure} = 0 ]; then if [[ ${lastrun} -ne 0 ]]; then