diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-07-05 22:07:39 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2018-07-05 22:17:59 +0200 |
commit | d65c13086776b218e1ad33c51382397ae91e58ab (patch) | |
tree | 0a84977b44c642370c1c968d4fe220f3f6c3b03e | |
parent | refactor and improve the test script (diff) | |
download | tatt-d65c13086776b218e1ad33c51382397ae91e58ab.tar.gz tatt-d65c13086776b218e1ad33c51382397ae91e58ab.tar.bz2 tatt-d65c13086776b218e1ad33c51382397ae91e58ab.zip |
add an explicit snippet for package test *-useflags.sh
-rw-r--r-- | tatt/scriptwriter.py | 7 | ||||
-rw-r--r-- | templates/use-test-snippet | 1 |
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@@" |