Skip to content

[test] Re-instate ability to delay reference image collection. NFC #22672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 2, 2024

In #22665 I removed the manually_trigger_reftest. However this resulted in racey behaviour in some tests. It turns out that running doReftest during postRun was working, but only because doReftest itself was doing async work, thus delaying the actual capture of the canvas bits.

This change re-instates the behaviour but without the need to test setting in python.

@sbc100 sbc100 requested a review from kripken October 2, 2024 20:34
@sbc100 sbc100 force-pushed the reftest branch 2 times, most recently from bc4d8b5 to 2bd6cda Compare October 2, 2024 20:36
@sbc100 sbc100 requested a review from dschuff October 2, 2024 20:59
In emscripten-core#22665 I removed the manually_trigger_reftest. However this resulted
in racey behaviour in some tests.  It turns out that running `doReftest`
during `postRun` was working, but only because `doReftest` itself
was doing async work, thus delaying the actual capture of the canvas
bits.

This change re-instates the behaviour but without the need to test
setting in python.
@sbc100 sbc100 merged commit 27f1f82 into emscripten-core:main Oct 2, 2024
25 of 28 checks passed
@sbc100 sbc100 deleted the reftest branch October 2, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants