mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +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() {
|
||||
testprog=$1
|
||||
prefix=$(basename ${file%%.test})
|
||||
prefix=$(basename ${testprog%%.test})
|
||||
|
||||
[[ $testprog = *-LOADED.test ]] && return
|
||||
|
||||
@ -310,8 +310,10 @@ run_combined_test
|
||||
|
||||
if [[ $QUICK != 1 ]]; then
|
||||
for testprog in "${TEST_LIST[@]}"; do
|
||||
unload_all
|
||||
run_custom_test $testprog
|
||||
if [[ ! $testprog =~ -FAIL ]]; then
|
||||
unload_all
|
||||
run_custom_test $testprog
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user