diff --git a/scripts/jenkins/Jenkinsfile b/scripts/jenkins/Jenkinsfile index e586fab371e..7bdd484817c 100644 --- a/scripts/jenkins/Jenkinsfile +++ b/scripts/jenkins/Jenkinsfile @@ -866,7 +866,7 @@ def buildAndTest(testName, image, extraCmakeFlags = [:], sh "make" trackCoverage(testCoverage) { if(testAll) { - ctest() + ctest("Test", testName) if(testMem) { cmemcheck() } @@ -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: @@ -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