-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subprocesses: customizable SubprocessFactory
Individual SubprocessBuilder instances can now use a SubprocessFactory object other than the static SubprocessBuilder.factory. Also, WindowsSubprocessFactory is no longer a singleton because it now stores state: whether to use windows-style argument escaping or to use the (broken) Bash-style escaping (causing #7122). These two changes allow: - a safer way to mock out SubprocessFactory in tests, because it's no longer necessary to change global state (i.e. the static SubprocessBuilder.factory member) - testing old and new argument escaping semantics in WindowsSubprocessTest - adding a flag that switches between old and new semantics in the SubprocessFactory, and thus allows rolling out the bugfix with just a flag flip See #7122 PiperOrigin-RevId: 234105692
- Loading branch information
1 parent
fb016b6
commit 1da4861
Showing
5 changed files
with
162 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.