Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 3, 2025

This was added in #25142 to fix windows but inadvertently broke linux.

Turns out the shell=True means that first argument should be a single string, and not and array of arguments. For some reason using an array along with shell=True was causing subprocess.check_call to run test/runner only without any aguments.

@sbc100 sbc100 requested a review from juj September 3, 2025 20:56
@sbc100 sbc100 requested a review from kripken September 3, 2025 21:00
@sbc100 sbc100 changed the title Remove shell=True from rebaseline_tests.py. NFC Remove shell=True from rebaseline_tests.py. NFC Sep 3, 2025
Copy link
Collaborator

@juj juj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch - I'll have to remember that gotcha.

This was added in emscripten-core#25142 to fix windows but inadvertently broke linux.

Turns out the `shell=True` means that first argument should be a single
string, and not and array of arguments.  For some reason using an array
along with `shell=True` was causing `subprocess.check_call` to silently
do nothing.
@sbc100 sbc100 merged commit d73a7a1 into emscripten-core:main Sep 3, 2025
7 of 13 checks passed
@sbc100 sbc100 deleted the rebaseline_tests branch September 3, 2025 22:04
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.

3 participants