Skip to content

Commit

Permalink
dbench.py: Added decode("utf-8")
Browse files Browse the repository at this point in the history
Added decode("utf-8")to avoid string pattern error.

Signed-off-by: Naveen kumar T <[email protected]>
  • Loading branch information
naveen538 committed Jan 27, 2020
1 parent 2d53c5f commit e6ce28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/disk/dbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test(self):
seconds)
process.run(cmd)

self.results = process.system_output(cmd)
self.results = process.system_output(cmd).decode("utf-8")
pattern = re.compile(r"Throughput (.*?) MB/sec (.*?) procs")
(throughput, procs) = pattern.findall(self.results)[0]
self.whiteboard = json.dumps({'throughput': throughput,
Expand Down

0 comments on commit e6ce28c

Please sign in to comment.