Skip to content

Commit

Permalink
Merge pull request avocado-framework-tests#1526 from naveen538/dbench
Browse files Browse the repository at this point in the history
dbench.py: Added decode("utf-8")
  • Loading branch information
PraveenPenguin authored Jan 27, 2020
2 parents 2d53c5f + e6ce28c commit 16e9d40
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 16e9d40

Please sign in to comment.