Skip to content

Commit

Permalink
Merge pull request #33832 from sharwell/revert-exec-command
Browse files Browse the repository at this point in the history
Revert "Merge pull request #33800 from sharwell/script-cleanup"
  • Loading branch information
sharwell authored Mar 3, 2019
2 parents 2cab0d7 + 76fd803 commit da920a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -534,22 +534,22 @@ try {
if ($quserItems[1] -eq 'console') {
Write-Host "Disconnecting from console before attempting reconnection"
try {
Exec-Command tsdiscon
tsdiscon
} catch {
# ignore
}

# Disconnection is asynchronous, so wait a few seconds for it to complete
Start-Sleep -Seconds 3
Exec-Command query user
query user
}

Write-Host "tscon $sessionid /dest:console"
Exec-Command tscon $sessionid /dest:console
tscon $sessionid /dest:console

# Connection is asynchronous, so wait a few seconds for it to complete
Start-Sleep 3
Exec-Command query user
query user

# Make sure we can capture a screenshot. An exception at this point will fail-fast the build.
Capture-Screenshot $screenshotPath
Expand Down

0 comments on commit da920a6

Please sign in to comment.