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 <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/428172
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Karol Latecki 2018-10-05 13:10:29 +02:00 committed by Jim Harris
parent 5faf653f0c
commit 1250a41664

View File

@ -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