Skip to content

Commit

Permalink
Merge pull request #1484 from microsoft/ab-fix-escape-char-warnings
Browse files Browse the repository at this point in the history
[ci] Fix escape character warnings
  • Loading branch information
anandbonde authored Jan 14, 2025
2 parents 87db761 + 71141e4 commit 0647582
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tools/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def read_args() -> argparse.Namespace:
parser.add_argument("--client-addr", required=True,
help="sets client address in tests")
parser.add_argument("--config-path", required=False,
default="\$HOME/config.yaml", help="sets config path")
default="\\$HOME/config.yaml", help="sets config path")

# Other options.
parser.add_argument("--output-dir", required=False,
Expand Down
14 changes: 7 additions & 7 deletions tools/ci/task/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def __init__(self, host: str, cmd: str):

@staticmethod
def _build_env_cmd() -> str:
rust_path = "\$RustPath = Join-Path \$Env:HOME \\.cargo\\bin"
git_path = "\$GitPath = Join-Path \$Env:ProgramFiles \\Git\\cmd"
env_path_git = "\$Env:Path += \$GitPath + \';\'"
env_path_rust = "\$Env:Path += \$RustPath + \';\'"
vs_install_path = "\$VsInstallPath = &(Join-Path \${Env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -latest -property installationPath"
import_module = "Import-Module (Join-Path \$VsInstallPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll')"
enter_vsdevshell = "Enter-VsDevShell -VsInstallPath \$VsInstallPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'"
rust_path = "\\$RustPath = Join-Path \\$Env:HOME \\.cargo\\bin"
git_path = "\\$GitPath = Join-Path \\$Env:ProgramFiles \\Git\\cmd"
env_path_git = "\\$Env:Path += \\$GitPath + \';\'"
env_path_rust = "\\$Env:Path += \\$RustPath + \';\'"
vs_install_path = "\\$VsInstallPath = &(Join-Path \\${Env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -latest -property installationPath"
import_module = "Import-Module (Join-Path \\$VsInstallPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll')"
enter_vsdevshell = "Enter-VsDevShell -VsInstallPath \\$VsInstallPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'"

env_cmd = " ; ".join([rust_path, git_path, env_path_git, env_path_rust, vs_install_path,
import_module, enter_vsdevshell])
Expand Down
2 changes: 1 addition & 1 deletion tools/demikernel_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def read_args() -> argparse.Namespace:
parser.add_argument("--client-addr", required="--test-system" in sys.argv,
help="sets client address in tests")
parser.add_argument("--config-path", required=False,
default="\$HOME/config.yaml", help="sets config path")
default="\\$HOME/config.yaml", help="sets config path")

# Other options.
parser.add_argument("--output-dir", required=False,
Expand Down

0 comments on commit 0647582

Please sign in to comment.