From 1250a41664d878b6aa109f4af0e97cfc8e49af20 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Fri, 5 Oct 2018 13:10:29 +0200 Subject: [PATCH] scripts/perf: fix nvme perf scripts Due to change of defauly Python interpreter to Python3 we need to decode byte object from check_output() to utf-8, otherwise there is an error. Change-Id: I83e2d79ec8c3934c5c6d00768288fbb4c5a50914 Signed-off-by: Karol Latecki Reviewed-on: https://review.gerrithub.io/428172 Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- scripts/perf/nvme/run_fio_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/perf/nvme/run_fio_test.py b/scripts/perf/nvme/run_fio_test.py index bbbfaa5b4..79d9e566d 100755 --- a/scripts/perf/nvme/run_fio_test.py +++ b/scripts/perf/nvme/run_fio_test.py @@ -116,7 +116,7 @@ def get_nvme_devices_count(): def get_nvme_devices_bdf(): - output = check_output('lspci | grep -i Non | awk \'{print $1}\'', shell=True) + output = check_output('lspci | grep -i Non | awk \'{print $1}\'', shell=True).decode("utf-8") output = output.split() return output