test/dd: Return from gen_conf() if no configuration was provided

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I9bbd8ad2d7e369959c27433905749adab2958d07
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9939
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Michal Berger 2021-10-20 12:38:19 +02:00 committed by Tomasz Zawadzki
parent a6bbb3820c
commit 6155dadbf7

View File

@ -38,6 +38,10 @@ gen_conf() {
# of the values is done here. extra_subsystems[] can store extra
# json configuration for different subsystems, other than bdev.
if (($# == 0)) && [[ -z ${!method_@} ]]; then
return 1
fi
methods=("${@:-${!method_@}}")
local IFS=","