forked from KolibriOS/kolibrios
[KERNEL][TEST] Use filecmp instead of cmp utility
git-svn-id: svn://kolibrios.org@9340 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
17af3bd52c
commit
f90d41a388
@ -11,6 +11,7 @@ import timeit
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import subprocess
|
import subprocess
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
import filecmp
|
||||||
|
|
||||||
sys.path.append('test')
|
sys.path.append('test')
|
||||||
import common
|
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")
|
ref_log = create_relocated(root_dir, f"{test_file_path[:-2]}.ref.log")
|
||||||
out_log = f"{test_file_path[:-2]}.out.log.o"
|
out_log = f"{test_file_path[:-2]}.out.log.o"
|
||||||
os.system(f"./umka_shell.exe < {test} > {out_log}")
|
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 = "")
|
print(f"FAILURE: {test_file_path}\n", end = "")
|
||||||
else:
|
else:
|
||||||
print(f"SUCCESS: {test_file_path}\n", end = "")
|
print(f"SUCCESS: {test_file_path}\n", end = "")
|
||||||
|
Loading…
Reference in New Issue
Block a user