From f90d41a3883c0d8303d31bc302240c5fcb77cba5 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Sat, 27 Nov 2021 20:07:11 +0000 Subject: [PATCH] [KERNEL][TEST] Use filecmp instead of cmp utility git-svn-id: svn://kolibrios.org@9340 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/runtests.py b/kernel/trunk/runtests.py index a5ba71d757..86b4d1bd8e 100755 --- a/kernel/trunk/runtests.py +++ b/kernel/trunk/runtests.py @@ -11,6 +11,7 @@ import timeit import urllib.request import subprocess from threading import Thread +import filecmp sys.path.append('test') import common @@ -228,7 +229,7 @@ def run_umka_test(root_dir, test_file_path): ref_log = create_relocated(root_dir, f"{test_file_path[:-2]}.ref.log") out_log = f"{test_file_path[:-2]}.out.log.o" os.system(f"./umka_shell.exe < {test} > {out_log}") - if os.system(f"cmp {ref_log} {out_log}") != 0: + if not filecmp.cmp(ref_log, out_log): print(f"FAILURE: {test_file_path}\n", end = "") else: print(f"SUCCESS: {test_file_path}\n", end = "")