From 5a04e473b22e6f6b65433d07c5a1668a0a404fa2 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 17 Jan 2020 03:32:19 -0700 Subject: [PATCH] test/nvme: fix shellcheck error Fix perf/common.sh to remove the useless cat operation. Fixes shellcheck SC2002 error. Signed-off-by: Jim Harris Change-Id: I2abafa5c238d45de63b174c7705e28bd93d75822 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/482005 Reviewed-by: Tomasz Zawadzki Reviewed-by: Seth Howell Tested-by: SPDK CI Jenkins --- test/nvme/perf/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nvme/perf/common.sh b/test/nvme/perf/common.sh index 8a9e94462e..5cb9de7878 100755 --- a/test/nvme/perf/common.sh +++ b/test/nvme/perf/common.sh @@ -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