mirror of
https://github.com/dynup/kpatch
synced 2024-12-18 19:34:30 +00:00
e59355c2b7
If an error occurs while loading a module or one of the tests, multiple.test will exit leaving the working modules loaded. This leaves the system in an unwanted state and causes the test that previously pass to fail (succeeding before being loaded for multiple.test's point of view). Cleanup the loaded modules before exiting due to errors. Also take this opportunity to factorize the test for the different distros. Signed-off-by: Julien Thierry <jthierry@redhat.com>
8 lines
200 B
Bash
Executable File
8 lines
200 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
|
|
|
declare -a blacklist=(data-new-LOADED.test meminfo-cmdline-rebuild-SLOW-LOADED.test)
|
|
|
|
source ${SCRIPTDIR}/../common/multiple.template
|