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:
Artem Savkov 2018-12-10 15:54:37 +01:00
parent 0f54262f7d
commit 3c2ee0f61f

View File

@ -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