aboutsummaryrefslogtreecommitdiff
path: root/tatt
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2019-12-20 15:30:10 +0100
committerRolf Eike Beer <eike@sf-mail.de>2019-12-20 20:56:45 +0100
commit41442dc25c6fe59858376c9c6964215341237bc4 (patch)
tree75fe3a89d1f830595aef4f8d8c764140da543515 /tatt
parentremove primary packages from rdeps script (diff)
downloadtatt-41442dc25c6fe59858376c9c6964215341237bc4.tar.gz
tatt-41442dc25c6fe59858376c9c6964215341237bc4.tar.bz2
tatt-41442dc25c6fe59858376c9c6964215341237bc4.zip
add a return code to the use test script
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'tatt')
-rw-r--r--tatt/scriptwriter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index fa26608..b4bee69 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -84,6 +84,9 @@ def writeusecombiscript(job, config):
loop = useloop.replace("@@LOOP_BODY@@", useCombiTestString(job, p, config, port))
loop = loop.replace("@@CPV@@", p.packageString())
outfile.write(loop)
+ if os.path.exists(config['template-dir'] + "use-footer"):
+ footer = scriptTemplate(job, config, "use-footer")
+ outfile.write(footer)
# Note: fchmod needs the filedescriptor which is an internal
# integer retrieved by fileno().
os.fchmod(outfile.fileno(), 0o744) # rwxr--r--