File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,15 @@ function Wait-Executable($Exe) {
382
382
LogErr " Process had nonzero exit code: $ ( $Exe.Process.ExitCode ) "
383
383
$KeepOutput = $true
384
384
}
385
+ # Wait up to 30 seconds for files to appear in $LogDir if $AZP is set.
386
+ if ($AZP ) {
387
+ $Elapsed = 0
388
+ $Timeout = 30
389
+ while ($Elapsed -lt $Timeout -and (Get-ChildItem - Path $LogDir | Measure-Object ).Count -eq 0 ) {
390
+ Start-Sleep - Seconds 1
391
+ $Elapsed ++
392
+ }
393
+ }
385
394
$DumpFiles = (Get-ChildItem $LogDir ) | Where-Object { $_.Extension -eq " .dmp" }
386
395
if ($DumpFiles ) {
387
396
LogErr " Dump file(s) generated"
@@ -462,7 +471,8 @@ function Wait-Executable($Exe) {
462
471
Remove-Item $LogDir - Recurse - Force | Out-Null
463
472
}
464
473
465
- Log " Output available at $ ( $LogDir ) "
474
+ Log " Output available at $LogDir "
475
+ if ($AZP ) { dir $LogDir }
466
476
467
477
} else {
468
478
if ($LogProfile -ne " None" ) {
You can’t perform that action at this time.
0 commit comments