From 6281a8efc237324b886286fc1f68da2f2474e395 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sun, 6 Aug 2023 11:53:16 +0800 Subject: [PATCH] Fix checkstyle (#259) Signed-off-by: Andrew Innes --- contrib/windows/tests/ifstest.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/contrib/windows/tests/ifstest.py b/contrib/windows/tests/ifstest.py index d57417e69991..d8c558f60c19 100644 --- a/contrib/windows/tests/ifstest.py +++ b/contrib/windows/tests/ifstest.py @@ -229,7 +229,14 @@ def main(): for test in ['Test']: preTest(str(test) + " tests:") f = PureWindowsPath(get_driveletters()[0][1]) - ret = runWithPrint([str(p.joinpath("ifs_test_kit", "ifstest.exe")), '-g', 'Virus', str(f), '/n', '.\\' + str(test) + 'Results.log', '/N', '356789AB', '/T', '/p', '/m', '/E', '-R', '/j', '/r', 'c:', '-d', '\\Ntfs', '-a', '\\datacoh.exe', '/u', 'ifstest', '/U', '*rw53w52']) + ret = runWithPrint([str(p.joinpath("ifs_test_kit", + "ifstest.exe")), + '-g', 'Virus', str(f), '/n', + '.\\' + str(test) + 'Results.log', + '/N', '356789AB', '/T', '/p', '/m', + '/E', '-R', '/j', '/r', 'c:', '-d', + '\\Ntfs', '-a', '\\datacoh.exe', '/u', + 'ifstest', '/U', '*rw53w52']) time.sleep(10) if ret.returncode != 0: @@ -240,14 +247,12 @@ def main(): lines = ret.stdout.decode().splitlines() 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) print(out)