Browse Source

Fix reading dstat results (#4996)

* Fix reading dstat results

* remove print
Nate 6 years ago
parent
commit
d8fb6ff787
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/utils/results.py

+ 2 - 2
toolset/utils/results.py

@@ -461,8 +461,8 @@ class Results:
         stats_file = self.get_stats_file(framework_test.name, test_type)
         with open(stats_file) as stats:
             # dstat doesn't output a completely compliant CSV file - we need to strip the header
-            while stats.next() != "\n":
-                pass
+            for _ in range(4):
+                stats.next()
             stats_reader = csv.reader(stats)
             main_header = stats_reader.next()
             sub_header = stats_reader.next()