Fix gating tests

Notably the 'sg' module needs to be loaded explicitly.
This commit is contained in:
Tomas Bzatek 2024-05-07 16:16:53 +02:00
parent 7cdd8dd105
commit b580e08629

View File

@ -34,7 +34,7 @@ set -o pipefail
check_version () { check_version () {
# <utility> <option> should return name (or "version" string) and some version like N.N # <utility> <option> should return name (or "version" string) and some version like N.N
rlRun "$1 $2 2>&1 | tee output.log" 0 "check version for $1" rlRun "$1 $2 2>&1 | tee output.log" 0 "check version for $1"
rlAssertGrep "(([vV]ersion( string)?:)|($1)).*\d+\.\d+" output.log "-P" rlAssertGrep "(([vV]ersion( string)?:)|($1)|(release:)).*\d+\.\d+" output.log "-P"
} }
# check for help option # check for help option
@ -60,6 +60,7 @@ rlJournalStart
rlRun "modprobe -r scsi_debug" rlRun "modprobe -r scsi_debug"
sleep 1 sleep 1
rlRun "modprobe -v scsi_debug add_host=$SCSI_HOSTS num_tgts=$SCSI_TARGETS" rlRun "modprobe -v scsi_debug add_host=$SCSI_HOSTS num_tgts=$SCSI_TARGETS"
rlRun "modprobe -v sg"
sleep 1 sleep 1
choose_host choose_host
if [ "$SCSI_CHOOSEN_HOST" != "" ]; then if [ "$SCSI_CHOOSEN_HOST" != "" ]; then