test/nvme: fix shellcheck error
Fix perf/common.sh to remove the useless cat operation. Fixes shellcheck SC2002 error. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2abafa5c238d45de63b174c7705e28bd93d75822 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/482005 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Seth Howell <seth.howell@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
0cd9241a2d
commit
5a04e473b2
@ -303,7 +303,7 @@ function get_nvmeperf_results() {
|
||||
local max_lat_usec
|
||||
local min_lat_usec
|
||||
|
||||
read -r iops bw_MBs mean_lat_usec min_lat_usec max_lat_usec<<< $(cat $NVME_FIO_RESULTS | tr -s " " | grep -oP "(?<=Total : )(.*+)")
|
||||
read -r iops bw_MBs mean_lat_usec min_lat_usec max_lat_usec<<< $(tr -s " " < $NVME_FIO_RESULTS | grep -oP "(?<=Total : )(.*+)")
|
||||
|
||||
# We need to get rid of the decimal spaces due
|
||||
# to use of arithmetic expressions instead of "bc" for calculations
|
||||
|
Loading…
Reference in New Issue
Block a user