mirror of
https://github.com/dynup/kpatch
synced 2025-01-18 11:00:44 +00:00
integration: blacklists in multiple.test
Hardcode a blacklist of modules in multiple.test so we can deal with conflicts while only updating the test when those arise. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
70f9221c01
commit
fb11c794f2
@ -22,10 +22,20 @@ ko_to_test() {
|
||||
|
||||
# make sure any modules added here are disjoint
|
||||
declare -a modules
|
||||
declare -a blacklist=(data-new-LOADED.test)
|
||||
|
||||
for file in "${SCRIPTDIR}"/*"${TEST_POSTFIX}"; do
|
||||
name=$(basename ${file})
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
skip=0
|
||||
for bname in "${blacklist[@]}"; do
|
||||
if [ "${bname}" == "${name}" ]; then
|
||||
skip=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ ${skip} -eq 0 ]; then
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
fi
|
||||
done
|
||||
|
||||
for mod in "${modules[@]}"; do
|
||||
|
@ -22,10 +22,20 @@ ko_to_test() {
|
||||
|
||||
# make sure any modules added here are disjoint
|
||||
declare -a modules
|
||||
declare -a blacklist=(meminfo-cmdline-rebuild-SLOW-LOADED.test)
|
||||
|
||||
for file in "${SCRIPTDIR}"/*"${TEST_POSTFIX}"; do
|
||||
name=$(basename ${file})
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
skip=0
|
||||
for bname in "${blacklist[@]}"; do
|
||||
if [ "${bname}" == "${name}" ]; then
|
||||
skip=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ ${skip} -eq 0 ]; then
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
fi
|
||||
done
|
||||
|
||||
for mod in "${modules[@]}"; do
|
||||
|
@ -22,10 +22,20 @@ ko_to_test() {
|
||||
|
||||
# make sure any modules added here are disjoint
|
||||
declare -a modules
|
||||
declare -a blacklist=(data-new-LOADED.test meminfo-cmdline-rebuild-SLOW-LOADED.test)
|
||||
|
||||
for file in "${SCRIPTDIR}"/*"${TEST_POSTFIX}"; do
|
||||
name=$(basename ${file})
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
skip=0
|
||||
for bname in "${blacklist[@]}"; do
|
||||
if [ "${bname}" == "${name}" ]; then
|
||||
skip=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ ${skip} -eq 0 ]; then
|
||||
modules+=(${MODULE_PREFIX}${name%${TEST_POSTFIX}}${MODULE_POSTFIX})
|
||||
fi
|
||||
done
|
||||
|
||||
for mod in "${modules[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user