test/integration: Skip disabled tests in multiple.test

Tests intentionaly disabled should be skipped by multiple.test

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2019-10-08 08:43:06 +01:00
parent 852bad5e8d
commit 4aa909eb8f

View File

@ -5,6 +5,8 @@ KPATCH="sudo $ROOTDIR/kpatch/kpatch"
MODULE_PREFIX="test-"
MODULE_POSTFIX=".ko"
TEST_POSTFIX="-LOADED.test"
PATCH_POSTFIX=".patch"
DISABLED_POSTFIX="${PATCH_POSTFIX}.disabled"
set -o errexit
@ -44,6 +46,10 @@ for file in "${SCRIPTDIR}"/*"${TEST_POSTFIX}"; do
break
fi
done
if ! [ -e ${file/${TEST_POSTFIX}/${PATCH_POSTFIX}} ] && \
[ -e ${file/${TEST_POSTFIX}/${DISABLED_POSTFIX}} ]; then
skip=1
fi
if [ ${skip} -eq 0 ]; then
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
fi