forked from microsoft/MLOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlos_bench: shell command line parsing improvements (microsoft#461)
Adds support for splitting a single shell command line into subcommands and applying the first token script name full path resolution logic to it. Also cleans up slightly the handling of `.` directories from microsoft#459. For example, in the following: ```sh . env.sh && partial/path/to/app/env/script.py || another/script.sh ``` `.` should be left alone as equivalent to the shell keyword `source`, and both scripts should resolved to an expanded full path, with the python script prefixed with a python executable path. Tests for both are included. --------- Co-authored-by: Sergiy Matusevych <sergiym@microsoft.com>
- Loading branch information
Showing
4 changed files
with
125 additions
and
20 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