scripts/perf: Update results parsing in nvmf benchmark scripts
Wrong indent level caused results to be duplicated in final output file if configuration file was used to run more than one workload combination. Change-Id: I0fadc10eba38898df648ec2da5fbd0440a3b9693 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449150 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
82645a63d3
commit
02d7812f46
@ -154,10 +154,10 @@ class Target(Server):
|
||||
total = ["{0:.3f}".format(sum(c)) for c in zip(*inits_avg_results)]
|
||||
rows.add(",".join([job_name, *total]))
|
||||
|
||||
# Save results to file
|
||||
for row in rows:
|
||||
with open(os.path.join(results_dir, csv_file), "a") as fh:
|
||||
fh.write(row + "\n")
|
||||
# Save results to file
|
||||
for row in rows:
|
||||
with open(os.path.join(results_dir, csv_file), "a") as fh:
|
||||
fh.write(row + "\n")
|
||||
|
||||
def measure_sar(self, results_dir, sar_file_name):
|
||||
self.log_print("Waiting %d delay before measuring SAR stats" % self.sar_delay)
|
||||
|
Loading…
Reference in New Issue
Block a user