From: Jens Axboe Date: Thu, 12 Nov 2020 18:26:58 +0000 (-0700) Subject: t/latency_percentiles.py: tweak terse output parse X-Git-Tag: fio-3.25~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=84f9318fc16e33633ac9f789dcef7cc58c3b8595;p=fio.git t/latency_percentiles.py: tweak terse output parse 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 --- diff --git a/t/latency_percentiles.py b/t/latency_percentiles.py index a9aee019..cc437426 100755 --- a/t/latency_percentiles.py +++ b/t/latency_percentiles.py @@ -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