mirror of
https://github.com/dynup/kpatch
synced 2025-05-01 07:28:01 +00:00
integration: fix prefix in run_custom_test
run_custom_test used global "file" variable instead of local "testprog" to deduce "prefix", so it would sometimes report wrong name for running test. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
0f54262f7d
commit
3c2ee0f61f
@ -206,7 +206,7 @@ run_load_test() {
|
|||||||
|
|
||||||
run_custom_test() {
|
run_custom_test() {
|
||||||
testprog=$1
|
testprog=$1
|
||||||
prefix=$(basename ${file%%.test})
|
prefix=$(basename ${testprog%%.test})
|
||||||
|
|
||||||
[[ $testprog = *-LOADED.test ]] && return
|
[[ $testprog = *-LOADED.test ]] && return
|
||||||
|
|
||||||
@ -310,8 +310,10 @@ run_combined_test
|
|||||||
|
|
||||||
if [[ $QUICK != 1 ]]; then
|
if [[ $QUICK != 1 ]]; then
|
||||||
for testprog in "${TEST_LIST[@]}"; do
|
for testprog in "${TEST_LIST[@]}"; do
|
||||||
unload_all
|
if [[ ! $testprog =~ -FAIL ]]; then
|
||||||
run_custom_test $testprog
|
unload_all
|
||||||
|
run_custom_test $testprog
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user