From a86fa6d1a4c2ed1d280d919bd9dad60367f5e9c9 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Wed, 9 Nov 2022 10:35:05 +0100 Subject: [PATCH] scripts/perf: replace spaces for BMC's sensor names Replace spaces with undescores for each sensor name to avoid dealing with filenames with spaces later. Change-Id: I2115cc14a15a53a7d92a7dae5cb6d1bfa7fb4402 Signed-off-by: Karol Latecki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15352 Tested-by: SPDK CI Jenkins Reviewed-by: Konrad Sztyber Reviewed-by: Jaroslaw Chachulski Reviewed-by: Michal Berger Reviewed-by: Tomasz Zawadzki --- scripts/perf/pm/collect-bmc-pm | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/perf/pm/collect-bmc-pm b/scripts/perf/pm/collect-bmc-pm index 23321ed5e..54f544700 100755 --- a/scripts/perf/pm/collect-bmc-pm +++ b/scripts/perf/pm/collect-bmc-pm @@ -386,6 +386,7 @@ dump_readings() { avg=$((total / ${#readings[@]})) readings+=("Total: ${#readings[@]}") + sensor="${sensor//[[:space:]]/_}" printf '%u\n' "$avg" > "$output_dir/${prefix:+${prefix}_}avg_${sensor}.bmc.pm.txt" printf '%s\n' "${readings[@]}" > "$output_dir/${prefix:+${prefix}_}all_${sensor}.bmc.pm.txt" printf 'Dumped avg to %s\n' "$output_dir/${prefix:+${prefix}_}avg_${sensor}.bmc.pm.txt" >&2