Skip to content

Commit

Permalink
Disable test testshell_markdown_kdb_get on debian-stable-full-ini
Browse files Browse the repository at this point in the history
  • Loading branch information
e01306821 committed Mar 20, 2019
1 parent acf72f7 commit bde0793
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions scripts/jenkins/Jenkinsfile
Expand Up @@ -866,7 +866,7 @@ def buildAndTest(testName, image, extraCmakeFlags = [:],
sh "make"
trackCoverage(testCoverage) {
if(testAll) {
ctest()
ctest("Test", testName)
if(testMem) {
cmemcheck()
}
Expand Down Expand Up @@ -1199,7 +1199,18 @@ def cpuCount() {
/* Run ctest with appropriate env variables
* @param target What target to pass to ctest
*/
def ctest(target = "Test") {
def ctest(target = "Test", nameTest = "Testname") {

/*
We disable the test `testshell_markdown_kdb_get` if the storage plugin INI is used, because it adds keys in between levels which
causes to have more keys stored inside elektra than expected in the test.
See also: https://github.com/ElektraInitiative/libelektra/pull/2499
*/
def testskip
if(nameTest == "debian-stable-full-ini") {
testskip = "|testshell_markdown_kdb_get"
}

/*
We disable the tests:
Expand All @@ -1216,7 +1227,7 @@ def ctest(target = "Test") {
*/
sh """ctest -j ${env.CTEST_PARALLEL_LEVEL} --force-new-ctest-process \
--output-on-failure --no-compress-output -T ${target} \
-E 'testmod_(crypto_(botan|openssl)|dbus(recv)?|fcrypt|gpgme|zeromqsend)'"""
-E 'testmod_(crypto_(botan|openssl)|dbus(recv)?|fcrypt|gpgme|zeromqsend)${testskip}'"""
}

/* Helper for ctest to run MemCheck without memleak tagged tests
Expand Down

0 comments on commit bde0793

Please sign in to comment.