Skip to content

Commit

Permalink
Revert change that broke live tests
Browse files Browse the repository at this point in the history
This reverts commit 2a474ac9fdf16406ee37ddd0d159a61849af5356.
While the code looked good, seems both @benbp and I forgot that the
pipeline passed "Generated" as the `-BaseName`, so it wasn't null.
  • Loading branch information
heaths authored and azure-sdk committed Apr 15, 2022
1 parent 1643467 commit e4dd7c3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,12 @@ try {

$UserName = GetUserName

if (!$BaseName) {
if ($CI) {
$BaseName = 't' + (New-Guid).ToString('n').Substring(0, 16)
Log "Generated base name '$BaseName' for CI build"
} else {
$BaseName = GetBaseName $UserName $ServiceDirectory
Log "BaseName was not set. Using default base name '$BaseName'"
}
if ($CI) {
$BaseName = 't' + (New-Guid).ToString('n').Substring(0, 16)
Log "Generated base name '$BaseName' for CI build"
} elseif (!$BaseName) {
$BaseName = GetBaseName $UserName $ServiceDirectory
Log "BaseName was not set. Using default base name '$BaseName'"
}

# Make sure pre- and post-scripts are passed formerly required arguments.
Expand Down

0 comments on commit e4dd7c3

Please sign in to comment.