treefmt / nix fmt (pull_request) Successful in 2s
build_systems / prebuild-common-x86-64-v3 (pull_request) Successful in 21s
build_systems / build-portal-1 (pull_request) Successful in 18s
test ebook search / test-ebook-search (pull_request) Successful in 1m6s
build_systems / build-bob (pull_request) Successful in 1m58s
build_systems / build-rhapsody-in-green (pull_request) Failing after 38m40s
build_systems / build-jeeves (pull_request) Successful in 8h2m34s
build_systems / build-brain (pull_request) Failing after 12h0m0s
20 lines
829 B
Diff
20 lines
829 B
Diff
Subject: [PATCH] Compare font content in the overlap-removal regression
|
|
|
|
PFA_SKIP ends with a separator, producing an empty prefix that matches every
|
|
line. Remove the empty prefix for this test so glyph differences are checked,
|
|
and assert that tx exits successfully before inspecting the output.
|
|
|
|
--- a/tests/tx_test.py
|
|
+++ b/tests/tx_test.py
|
|
@@ -1064,6 +1064,8 @@
|
|
output_path = get_temp_file_path()
|
|
args = [TOOL, '-t1', '+V', '-o', output_path, input_path]
|
|
- subprocess.call(args)
|
|
- assert differ([expected_path, output_path, '-s', PFA_SKIP[0]])
|
|
+ subprocess.check_call(args)
|
|
+ # An empty skip prefix matches every line and hides font differences.
|
|
+ skip_headers = SPLIT_MARKER.join(filter(None, PFA_SKIP[0].split(SPLIT_MARKER)))
|
|
+ assert differ([expected_path, output_path, '-s', skip_headers])
|
|
|
|
|