Instead of removing /etc/multipath.conf before a test starts, remove it
after a test has finished. This change is needed to let the nvmeof-mp
tests run after the srp tests have been run.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
SKIP_REASON="/etc/multipath.conf already exists"
return 1
fi
- if [ ! -e /etc/multipath.conf ]; then
- (
- srcdir=$PWD
- cd /etc && ln -s "$srcdir/tests/srp/multipath.conf" .
- )
- fi
}
# Log out, set dm and SCSI use_blk_mq parameters and log in. $1: device mapper
# Undo setup()
teardown() {
killall -9 multipathd >&/dev/null
+ rm -f /etc/multipath.conf
stop_target
unload_null_blk
}
configure_null_blk
+ if [ ! -e /etc/multipath.conf ]; then
+ (
+ srcdir=$PWD
+ cd /etc && ln -s "$srcdir/tests/srp/multipath.conf" .
+ )
+ fi
multipathd
# Load the I/O scheduler kernel modules