diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-12 14:51:30 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-12 14:51:30 -0300 |
| commit | 851811b43be38bea48ba5d04d16987bd541dca53 (patch) | |
| tree | 61e47e458d78d5b136dfd038fa87e6ec7f933ec7 /tests/scripts/test_bitflash_tools.py | |
| parent | 76321dbf6d388ce380cb36ccfa659e7d02544a4d (diff) | |
| parent | b0ed2ce585d2a6fd7c6d8d4db7422734aedccb58 (diff) | |
Merge pull request 'site: align public docs and static explorer output' (#30) from site-docs-polish-v1218 into main
Diffstat (limited to 'tests/scripts/test_bitflash_tools.py')
| -rw-r--r-- | tests/scripts/test_bitflash_tools.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/scripts/test_bitflash_tools.py b/tests/scripts/test_bitflash_tools.py index 4b18d1e..3b4c846 100644 --- a/tests/scripts/test_bitflash_tools.py +++ b/tests/scripts/test_bitflash_tools.py | |||
| @@ -159,8 +159,11 @@ def compare_golden(name, actual, update): | |||
| 159 | path.parent.mkdir(parents=True, exist_ok=True) | 159 | path.parent.mkdir(parents=True, exist_ok=True) |
| 160 | path.write_bytes(actual) | 160 | path.write_bytes(actual) |
| 161 | return | 161 | return |
| 162 | expected = path.read_bytes() | 162 | # The tools promise canonical LF-terminated JSON. On Windows checkouts a |
| 163 | if actual != expected: | 163 | # fixture may still appear as CRLF in the working tree; normalize only line |
| 164 | # endings so content, field order and compact serialization still drift-test. | ||
| 165 | expected = path.read_bytes().replace(b"\r\n", b"\n") | ||
| 166 | if actual.replace(b"\r\n", b"\n") != expected: | ||
| 164 | raise AssertionError("golden mismatch: %s" % name) | 167 | raise AssertionError("golden mismatch: %s" % name) |
| 165 | 168 | ||
| 166 | 169 | ||