Skip to content

Conversation

@nbayati
Copy link
Contributor

@nbayati nbayati commented Nov 3, 2025

The subprocess.run command was using .split() which does not handle quoted paths with spaces correctly. This would cause a FileNotFoundError when the path to the executable contained spaces.

This change replaces .split() with shlex.split() to correctly parse the command string.

A test case has been added to verify the fix and prevent regressions.

This was reported in b/237606033

The `subprocess.run` command was using `.split()` which does not handle quoted paths with spaces correctly. This would cause a `FileNotFoundError` when the path to the executable contained spaces.

This change replaces `.split()` with `shlex.split()` to correctly parse the
command string.

A test case has been added to verify the fix and prevent regressions.
@nbayati nbayati requested review from a team as code owners November 3, 2025 19:47
@daniel-sanche daniel-sanche enabled auto-merge (squash) November 11, 2025 00:36
@daniel-sanche daniel-sanche merged commit cf6fc3c into googleapis:main Nov 11, 2025
12 checks passed
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