Skip to content

Commit 85978da

Browse files
authored
acc: fix diff.py to ignore LOG files (#3795)
## Why They are meant to be ignored. Otherwise output differs. Related: #3789 ## Tests Manually.
1 parent 899db28 commit 85978da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acceptance/bin/diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def main():
3131
print(f"Regex error for pattern {r}: {e}", file=sys.stderr)
3232

3333
if d1.is_dir() and d2.is_dir():
34-
files1 = [str(p.relative_to(d1)) for p in d1.rglob("*") if p.is_file()]
35-
files2 = [str(p.relative_to(d2)) for p in d2.rglob("*") if p.is_file()]
34+
files1 = [str(p.relative_to(d1)) for p in d1.rglob("*") if p.is_file() and not p.name.startswith("LOG")]
35+
files2 = [str(p.relative_to(d2)) for p in d2.rglob("*") if p.is_file() and not p.name.startswith("LOG")]
3636
else:
3737
assert d1.is_file(), d1
3838
assert d2.is_file(), d2

0 commit comments

Comments
 (0)