From 8adcb30fce5ef214dc4aeeff3a40fbbd94e93507 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sat, 5 Aug 2023 16:18:22 +0800 Subject: [PATCH] Update ifstest.py --- contrib/windows/tests/ifstest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/windows/tests/ifstest.py b/contrib/windows/tests/ifstest.py index 4e9c73a18f8c..d57417e69991 100644 --- a/contrib/windows/tests/ifstest.py +++ b/contrib/windows/tests/ifstest.py @@ -239,8 +239,13 @@ def main(): print(ret.stdout.decode()) lines = ret.stdout.decode().splitlines() - outlines = lines[13:] - + outlines = [] + ignoreflag = True + for line in lines[13:]: + if "------------------" in line: + outlines.append("\n") + else: + outlines.append(line) out = str(test) + "\n" + "\n".join(outlines)