From 76fd803caf4aa555ea90c167e7d413a57f0ec03b Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 2 Mar 2019 14:49:01 -0600 Subject: [PATCH] Revert "Merge pull request #33800 from sharwell/script-cleanup" This reverts commit 726c2bc02410d1fadaba9a6f763cdaa1cb2e30d4, reversing changes made to f51b549089145547d09ff828ec09cc221936c31c. --- eng/build.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/build.ps1 b/eng/build.ps1 index 82522278aee0d..9a346142d130f 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -525,22 +525,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