You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think maybe the right way to fix this is to have an easy way to not run UI tests on more than one platform; most UI tests don't really need this I think. That is, we're primarily testing spans, not so much the error itself. Perhaps that's not the right way to think about them, though.
Activity
nikomatsakis commentedon Jun 6, 2017
cc @petrochenkov @cengizio @kennytm -- all of whom have shown an interest in our testing infrastructure
nikomatsakis commentedon Jun 6, 2017
I agree, we need to fix this, but I'm not sure the best way.
I'm a bit reluctant to just add random wildcards into the output, since then you can't run the "regenerate reference" script and have it work.
One thought I had was to permit multiple references, one per architecture, but that does seem to have the same problem.
Another thought I had was to permit you to add a custom file that indicates other search-and-replace pairs specific to a particular test.
I guess it really depends on how often it comes up -- maybe it's ok to have to regenerate some reference files by hand, but it seems like a drag.
Mark-Simulacrum commentedon Jun 6, 2017
I think maybe the right way to fix this is to have an easy way to not run UI tests on more than one platform; most UI tests don't really need this I think. That is, we're primarily testing spans, not so much the error itself. Perhaps that's not the right way to think about them, though.
kennytm commentedon Jun 7, 2017
Instead of a custom file, I think the
*.rscould specify headers forTestCx::normalize_outputto teach it further normalization rules, e.g. for #42304If regex is too heavy, we could use simple literals instead:
BTW there should be
ignore-32bit/ignore-64bit/normalize-std???-32bit/normalize-std???-64bitso you don't need to write everything three times.nikomatsakis commentedon Jun 7, 2017
@kennytm yes, that sounds fine too. We'd have to make the "update references" script rather smarter (so it can parse those things out).
nikomatsakis commentedon Jun 7, 2017
Maybe rewrite it in Rust :)
kennytm commentedon Jun 8, 2017
@nikomatsakis since the files generated by compile-test is already normalized, the "update references" script shouldn't need to be changed.
nikomatsakis commentedon Jun 9, 2017
@kennytm oh right, good point :)