diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 1111da40d..f6647484f 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -1046,11 +1046,11 @@ function waitforserial() { nvme_device_counter=$2 fi - # Wait initially for min 2s to make sure all devices are ready for use. It seems + # Wait initially for min 4s to make sure all devices are ready for use. It seems # that we may be racing with a kernel where in some cases immediate disconnect may # leave dangling subsystem with no-op block devices which can't be used nor removed # (unless kernel is rebooted) and which start to negatively affect all the tests. - sleep 2 + sleep 4 while ((i++ <= 15)); do nvme_devices=$(lsblk -l -o NAME,SERIAL | grep -c "$1") ((nvme_devices == nvme_device_counter)) && return 0