check_format: Fixes for shellcheck's SC2268 directive
SC2268: Avoid x-prefix in comparisons as it no longer serves a purpose
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8505 (master)
(cherry picked from commit dd2b935dc4
)
Change-Id: Ica5ddfa8c39f34741c7344906abe802ff7451b1f
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9837
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
73c1c75f23
commit
91c22965cc
@ -119,7 +119,7 @@ rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
|
||||
|
||||
for vm_conf in "${vms[@]}"; do
|
||||
IFS=',' read -ra conf <<< "$vm_conf"
|
||||
if [[ x"${conf[0]}" == x"" ]] || ! assert_number ${conf[0]}; then
|
||||
if [[ -z ${conf[0]} ]] || ! assert_number ${conf[0]}; then
|
||||
fail "invalid VM configuration syntax $vm_conf"
|
||||
fi
|
||||
|
||||
|
@ -88,7 +88,7 @@ function print_test_fio_header() {
|
||||
function vms_setup() {
|
||||
for vm_conf in "${vms[@]}"; do
|
||||
IFS=',' read -ra conf <<< "$vm_conf"
|
||||
if [[ x"${conf[0]}" == x"" ]] || ! assert_number ${conf[0]}; then
|
||||
if [[ -z ${conf[0]} ]] || ! assert_number ${conf[0]}; then
|
||||
fail "invalid VM configuration syntax $vm_conf"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user