Skip to content
Snippets Groups Projects
Commit 3c9b11c8 authored by tuhe's avatar tuhe
Browse files

Fixed test suite

parent 18b0a4c0
No related branches found
No related tags found
No related merge requests found
13691
\ No newline at end of file
......@@ -21,6 +21,24 @@ def is_same(dir1, dir2):
Compare two directory trees content.
Return False if they differ, True is they are the same.
"""
import glob
for f1 in glob.glob(dir1+"/**/*.*"):
rp = os.path.relpath(f1, dir1)
f2 = dir2 + "/"+rp
with open(f1, 'r') as f:
s1 = f.read()
with open(f2, 'r') as f:
s2 = f.read()
if s1 != s2:
print("*"*50)
print(f1)
print(s1)
print("-"*5)
print(s2)
return False
compared = dircmp(dir1, dir2)
if (compared.left_only or compared.right_only or compared.diff_files
or compared.funny_files):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment