mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
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:
parent
852bad5e8d
commit
4aa909eb8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user