process replay: remove sorting before comparison (#29072)

* process replay: remove sorting before comparison

* keep ignore msgs
This commit is contained in:
Adeeb Shihadeh
2023-07-20 19:22:59 -07:00
committed by GitHub
parent 0faab606b0
commit 716d0d5918
@@ -60,7 +60,7 @@ def compare_logs(log1, log2, ignore_fields=None, ignore_msgs=None, tolerance=Non
default_tolerance = EPSILON if tolerance is None else tolerance
log1, log2 = (
sorted((m for m in log if m.which() not in ignore_msgs), key=lambda m: (m.logMonoTime, m.which()))
[m for m in log if m.which() not in ignore_msgs]
for log in (log1, log2)
)