diff --git a/test/nvme/perf/common.sh b/test/nvme/perf/common.sh index c5a1b5214..93f3ccad6 100755 --- a/test/nvme/perf/common.sh +++ b/test/nvme/perf/common.sh @@ -296,7 +296,7 @@ function create_fio_config() { m=$((m + 1)) #Mark numa of n'th disk as "x" to mark it as claimed for next loop iterations - disks_numa[$n]="x" + disks_numa[n]="x" fi n=$((n + 1)) diff --git a/test/setup/common.sh b/test/setup/common.sh index 043f37d73..1d00848e6 100644 --- a/test/setup/common.sh +++ b/test/setup/common.sh @@ -14,8 +14,6 @@ setup() { } get_meminfo() { - xtrace_disable - local get=$1 local node=$2 local var val @@ -35,8 +33,6 @@ get_meminfo() { echo "$val" && return 0 done < <(printf '%s\n' "${mem[@]}") return 1 - - xtrace_restore } partition_drive() { diff --git a/test/sma/vhost_blk.sh b/test/sma/vhost_blk.sh index a446bf006..a3c897378 100755 --- a/test/sma/vhost_blk.sh +++ b/test/sma/vhost_blk.sh @@ -148,7 +148,7 @@ devids=() # Now try to add 33 devices, max for one bus + one device on the next bus for ((i = 0; i < 33; i++)); do uuid=$(rpc_cmd bdev_get_bdevs -b null$i | jq -r '.[].uuid') - devids[$i]=$(create_device $i $uuid | jq -r '.handle') + devids[i]=$(create_device $i $uuid | jq -r '.handle') done [[ $(vm_exec $vm_no "lsblk | grep -E \"^vd.\" | wc -l") -eq 33 ]] diff --git a/test/vhost/migration/migration.sh b/test/vhost/migration/migration.sh index 6417a790f..1c8ffa7e3 100755 --- a/test/vhost/migration/migration.sh +++ b/test/vhost/migration/migration.sh @@ -115,8 +115,8 @@ function vm_migrate() { # If you need this check then perform it on your own. if [[ "$target_ip" == "127.0.0.1" ]]; then if ! vm_os_booted $target_vm; then - fail "VM$target_vm is not running" cat $target_vm $target_vm_dir/cont_result + fail "VM$target_vm is not running" fi fi diff --git a/test/vhost/perf_bench/vhost_perf.sh b/test/vhost/perf_bench/vhost_perf.sh index a2305ac18..5d316ecf4 100755 --- a/test/vhost/perf_bench/vhost_perf.sh +++ b/test/vhost/perf_bench/vhost_perf.sh @@ -396,7 +396,7 @@ else vms_to_run=(${disk_cfg_vms[i]}) for ((j = 0; j < ${disk_cfg_splits[$i]}; j++)); do free_mb=$(get_lvs_free_mb "$ls_guid") - size=$((free_mb / ((${disk_cfg_splits[$i]} - j)))) + size=$((free_mb / (disk_cfg_splits[i] - j))) lb_name=$($rpc_py bdev_lvol_create -u $ls_guid lbd_$j $size --clear-method none) lvol_bdevs+=("$lb_name") notice "Created LVOL Bdev $lb_name on Lvol Store $ls_guid on Bdev $nvme_bdev"