Commit 75a155b
committed
compiletest: ignore SVG
SVG diagnostic snapshots (`--color=always`) render one terminal row per
line. Under the parallel front-end, independent diagnostics can be emitted
in a different order, which only permutes the rows and re-renders each at a
different vertical `y` offset; the content of every row is unchanged.
The parallel front-end already compares ui output as a sorted line
multiset, but the `y` attribute is part of each line, so a pure reordering
was still reported as a difference. Strip the `y` coordinate (and the
`<svg>` header line, whose width and height are already ignored by the
exact comparison) before the multiset comparison. The normalization is
only used for the equality check; the original strings are kept for the
diff and for blessing, and single-threaded runs keep the exact comparison
including `y`.
With this, the multiline-removal-suggestion test passes under the parallel
front-end, so drop its ignore directive.y offset in by-lines comparison1 parent d595fce commit 75a155b
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2714 | 2714 | | |
2715 | 2715 | | |
2716 | 2716 | | |
2717 | | - | |
2718 | | - | |
2719 | | - | |
2720 | | - | |
2721 | | - | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
2722 | 2748 | | |
2723 | 2749 | | |
2724 | 2750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
0 commit comments