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 (Azure#21170)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
  • Loading branch information
azure-sdk and benbp authored Apr 1, 2022
1 parent 510ab52 commit fc453be
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 fc453be

Please sign in to comment.