Skip to content

Commit

Permalink
Generate assets json wrapper (Azure#35343)
Browse files Browse the repository at this point in the history
  • Loading branch information
billwert authored Jul 27, 2023
1 parent cee2260 commit 53db680
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eng/scripts/generate-assets-json-wrapper.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# get the temp directory
$temp = [System.IO.Path]::GetTempPath()
if (!(test-path $temp)) {
throw "Unable to find temp directory"
}

$testProxyPath = join-path $temp "test-proxy"
if (!(test-path $testProxyPath)) {
throw "Unable to find test proxy directory. Run a test proxy test to install it."
}
# Need the path separator for search paths, not file paths.
$pathsep = if ($env:OS -eq "Windows_NT") { ";" } else { ":" }
$env:Path = $env:PATH + $pathsep + $testProxyPath
Invoke-Expression "$(join-path $PSScriptRoot ../common/testproxy/transition-scripts/generate-assets-json.ps1) -TestProxyExe Azure.Sdk.Tools.TestProxy $args"

0 comments on commit 53db680

Please sign in to comment.