t/latency_percentiles.py: tweak terse output parse
authorJens Axboe <axboe@kernel.dk>
Thu, 12 Nov 2020 18:26:58 +0000 (11:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Nov 2020 18:26:58 +0000 (11:26 -0700)
Seems like we still have some wonkiness on whether or not the fio version
string is printed. For now, let's just cut this down to '3;' for
detecting terse (v3) output, don't have time to fully investigate this
one right now.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/latency_percentiles.py

index a9aee019192ca131d291e3f4ee5289329f682d96..cc4374262efcca612e19f9dce6f969de399861fa 100755 (executable)
@@ -216,7 +216,7 @@ class FioLatTest():
             file_data = file.read()
 
         #
-        # Read the first few lines and see if any of them begin with '3;fio-'
+        # Read the first few lines and see if any of them begin with '3;'
         # If so, the line is probably terse output. Obviously, this only
         # works for fio terse version 3 and it does not work for
         # multi-line terse output
@@ -224,7 +224,7 @@ class FioLatTest():
         lines = file_data.splitlines()
         for i in range(8):
             file_data = lines[i]
-            if file_data.startswith('3;;latency'):
+            if file_data.startswith('3;'):
                 self.terse_data = file_data.split(';')
                 return True