Skip to content

Commit

Permalink
Keep created/updated fields in testsuite results
Browse files Browse the repository at this point in the history
Now that diff.py is able to ignore changes in date/timestamps, let's add
back created and updated fields in the test result.
  • Loading branch information
oyvindhagberg committed Dec 11, 2024
1 parent e8b2c6d commit d24171f
Show file tree
Hide file tree
Showing 3 changed files with 2,256 additions and 79 deletions.
2 changes: 1 addition & 1 deletion ci/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def preprocess_json(s: str) -> str:

# Replace all non-deterministic values with placeholders
s = timestamp_pattern.sub("<TIME>", s)
s = datetime_str_pattern.sub("<TIME>", s)
s = datetime_str_pattern.sub("<DATETIME>", s)
s = serial_pattern.sub("Serial: <NUMBER>", s)
s = mac_pattern.sub("<macaddress>", s)
s = ipv4_pattern.sub("<IPv4>", s)
Expand Down
Loading

0 comments on commit d24171f

Please sign in to comment.