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 2FBEB13835A for ; Wed, 19 May 2021 16:31:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 562D4E086A; Wed, 19 May 2021 16:31:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 3E739E086A for ; Wed, 19 May 2021 16:31:19 +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 28559340D35 for ; Wed, 19 May 2021 16:31:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 41C6D63D for ; Wed, 19 May 2021 16:31:16 +0000 (UTC) From: "Rolf Eike Beer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rolf Eike Beer" Message-ID: <1621439577.e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.dakon@gentoo> Subject: [gentoo-commits] proj/tatt:master commit in: templates/, tatt/ X-VCS-Repository: proj/tatt X-VCS-Files: tatt/scriptwriter.py templates/revdep-footer templates/revdep-snippet X-VCS-Directories: templates/ tatt/ X-VCS-Committer: dakon X-VCS-Committer-Name: Rolf Eike Beer X-VCS-Revision: e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85 X-VCS-Branch: master Date: Wed, 19 May 2021 16:31:16 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8cafb8a9-f8f4-4409-857d-b5431731e9d7 X-Archives-Hash: 5b5695a7c33d1db676ee501cfb5ad547 commit: e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85 Author: Rolf Eike Beer sf-mail de> AuthorDate: Wed May 19 15:51:33 2021 +0000 Commit: Rolf Eike Beer sf-mail de> CommitDate: Wed May 19 15:52:57 2021 +0000 URL: https://gitweb.gentoo.org/proj/tatt.git/commit/?id=e4daa909 add a return code to the revdep test script Signed-off-by: Rolf Eike Beer sf-mail.de> tatt/scriptwriter.py | 5 +++++ templates/revdep-footer | 2 ++ templates/revdep-snippet | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py index c540626..4d60e34 100644 --- a/tatt/scriptwriter.py +++ b/tatt/scriptwriter.py @@ -151,6 +151,11 @@ def writerdepscript(job, config): # Todo: remove duplicates outfile.write(rdepTestString(job, r, config)) os.fchmod(outfile.fileno(), 0o744) + + if os.path.exists(config['template-dir'] + "revdep-footer"): + footer = scriptTemplate(job, config, "revdep-footer") + outfile.write(footer) + outfile.close() diff --git a/templates/revdep-footer b/templates/revdep-footer new file mode 100644 index 0000000..90349dc --- /dev/null +++ b/templates/revdep-footer @@ -0,0 +1,2 @@ + +exit ${test_ret} diff --git a/templates/revdep-snippet b/templates/revdep-snippet index ca99034..7a5a8a9 100644 --- a/templates/revdep-snippet +++ b/templates/revdep-snippet @@ -1 +1 @@ -@@USE@@ tatt_test_pkg --test "@@CPV@@" +@@USE@@ tatt_test_pkg --test "@@CPV@@" || test_ret=1