Procházet zdrojové kódy

Fix reading dstat results (#4996)

* Fix reading dstat results

* remove print
Nate před 6 roky
rodič
revize
d8fb6ff787
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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()