Skip to content

Commit 9fdd460

Browse files
authored
Fixed issue in live test and added more error details (#22249)
* Fixed the error when source was PSGallery * Added detailed error info to debug a concurrent issue
1 parent 271678a commit 9fdd460

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/TestFx/Live/InstallLiveTestAzModules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ switch ($Source) {
1111
"PSGallery" {
1212
Set-PSRepository -Name $Source -InstallationPolicy Trusted
1313
}
14-
{ "DailyBuild" -or "Sign" } {
14+
{ $_ -in "DailyBuild", "Sign" } {
1515
Register-PSRepository -Name $Source -SourceLocation $AzPackagesLocation -PackageManagementProvider NuGet -InstallationPolicy Trusted
1616
}
1717
}

tools/TestFx/Live/InvokeLiveTestScenarios.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ while ($queuedJobs.Count -gt 0) {
112112
}
113113

114114
if ("" -ne $liveJobStreams.Error) {
115-
$liveJobStreams.Error
115+
$liveJobStreams.Error | ForEach-Object {
116+
$_ | Format-List * -Force
117+
}
116118
}
117119
}
118120
}

0 commit comments

Comments
 (0)