Skip to content

Commit

Permalink
Support nested service directories for local test resources resource …
Browse files Browse the repository at this point in the history
…group names (#2167)

Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
azure-sdk and benbp authored Apr 1, 2022
1 parent 1ecee5d commit 62ea152
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ try {
$BaseName = 't' + (New-Guid).ToString('n').Substring(0, 16)
Log "Generated base name '$BaseName' for CI build"
} elseif (!$BaseName) {
$BaseName = "$UserName$ServiceDirectory"
# Handle service directories in nested directories, e.g. `data/aztables`
$serviceDirectorySafeName = $ServiceDirectory -replace '[/\\]', ''
$BaseName = "$UserName$serviceDirectorySafeName"
Log "BaseName was not set. Using default base name '$BaseName'"
}

Expand Down

0 comments on commit 62ea152

Please sign in to comment.