From: "Rolf Eike Beer" <eike@sf-mail.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/tatt:master commit in: templates/, tatt/
Date: Wed, 19 May 2021 16:31:16 +0000 (UTC) [thread overview]
Message-ID: <1621439577.e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.dakon@gentoo> (raw)
commit: e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85
Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
AuthorDate: Wed May 19 15:51:33 2021 +0000
Commit: Rolf Eike Beer <eike <AT> sf-mail <DOT> 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 <eike <AT> sf-mail.de>
tatt/scriptwriter.py | 5 +++++
| 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()
--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
reply other threads:[~2021-05-19 16:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1621439577.e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.dakon@gentoo \
--to=eike@sf-mail.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox