aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tatt/scriptwriter.py7
-rw-r--r--templates/use-test-snippet1
2 files changed, 5 insertions, 3 deletions
diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index 8623104..d583278 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -52,9 +52,10 @@ def useCombiTestString(job, pack, config, port):
# test once with tests and users flags
# do this first to trigger bugs in some packages where the test suite relies on
# the package being already installed
- localsnippet = usesnippet.replace("@@USE@@", "")
- localsnippet = localsnippet.replace("@@FEATURES@@", "FEATURES=\"${FEATURES} test\"")
- s = localsnippet
+ usetestsnippet = scriptTemplate(job, config, "use-test-snippet")
+ usetestsnippet = usetestsnippet.replace("@@CPV@@", pack.packageString() )
+ usetestsnippet = usetestsnippet.replace("@@FEATURES@@", "FEATURES=\"${FEATURES} test\"")
+ s = usetestsnippet.replace("@@USE@@", "")
usecombis = findUseFlagCombis (pack, config, port)
for uc in usecombis:
diff --git a/templates/use-test-snippet b/templates/use-test-snippet
new file mode 100644
index 0000000..72d7dd2
--- /dev/null
+++ b/templates/use-test-snippet
@@ -0,0 +1 @@
+@@USE@@ T@@FEATURES@@ tatt_test_pkg "@@CPV@@"