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:
parent
a6bbb3820c
commit
6155dadbf7
@ -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=","
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user