From 84f9318fc16e33633ac9f789dcef7cc58c3b8595 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 12 Nov 2020 11:26:58 -0700 Subject: [PATCH] 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 --- t/latency_percentiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1