aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2021-05-19 17:51:33 +0200
committerRolf Eike Beer <eike@sf-mail.de>2021-05-19 17:52:57 +0200
commite4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85 (patch)
treed2ba92778768dfc3d905e3fdad03eda5982a3af0
parenttemplates/tatt_functions.sh: don't be too verbose when building test deps (diff)
downloadtatt-e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.tar.gz
tatt-e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.tar.bz2
tatt-e4daa909cf3f2dc00a535e2ab88a0b3ec7bafb85.zip
add a return code to the revdep test script
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
-rw-r--r--tatt/scriptwriter.py5
-rw-r--r--templates/revdep-footer2
-rw-r--r--templates/revdep-snippet2
3 files changed, 8 insertions, 1 deletions
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