Commit Graph

37 Commits (7efe3cac3d5e728ee471bbccfd1043e06e4dcafe)

Author SHA1 Message Date
Megan Marsh c51cd751d1 go back to using StartWithUI to prevent weird hangs during windows reboot
8 years ago
Megan Marsh 9fa47f5dad make windows restart provisioner work with ssh communicator
8 years ago
Megan Marsh 974d9974fe add workaround for azure bug.
8 years ago
Megan Marsh 19c997cb0e revert to using UI becuase the remote command syntax breaks things on linux with vmware fusion.
8 years ago
Megan Marsh c3cb7fe9f9 read from stderr so it doesnt lock up
8 years ago
Megan Marsh 9b1ae530c3 have separate stdout and stderr buffers
8 years ago
Megan Marsh 6019e41544 dont read stderr
8 years ago
Megan Marsh 73b6247fd2 remove unnecessary boolean operator
8 years ago
Megan Marsh e56a6dc9a0 add some comments
8 years ago
Megan Marsh a739623d9b don't pipe restarted stuff through the ui
8 years ago
Megan Marsh d71bc34dfc don't need this in a loop
8 years ago
Megan Marsh d81871171c make restart command work correctly even if user has their own check command
8 years ago
Megan Marsh 959db1ac16 add echo test to winrm connection.
9 years ago
Megan Marsh b1001264ed fix windows-restart tests
9 years ago
Megan Marsh b2923b4da6 check stdout to make sure echo command actually goes through before counting computer as fully restarted
9 years ago
Matthew Hooker b1f06bbebb
fix wording
9 years ago
Matthew Hooker 67e29e1eff
disambiguates windows-restart messages.
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
Matthew Hooker 230079f73a
spell fixes
9 years ago
Marc Carmier 78ab21b42f Test error messages for restart_command and restart_timeout seems to be erroneous
9 years ago
Rickard von Essen 51a9a51699 Update winrm and winrmcp dependencies
10 years ago
Mark Peek 43cb854b3e Merge pull request #2568 from pecigonzalo/f-winrm-reboot
11 years ago
Mark Peek 1aad5cf6d5 provisioner/windows-restart: remove race in test
11 years ago
Mark Peek d87b68efe8 Syncronize cancellation in windows-restart tests
11 years ago
Gonzalo Peci f01f62dc88 Add specific exit codes listed on https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx
11 years ago
Gonzalo Peci 8bd3e62853 Because the new functionality makes the ```waitForRestart()``` function run commands it modifies the value of ```comm.StartCmd.Command``` that is being checked, we need to implement the same workaround that is being used for the ```waitForCommunicator()``` function. This should make the test work again and retain functionality.
11 years ago
Gonzalo Peci 08359e409a Revert the shutdown command with new parameters as this will return proper exit codes. This will work in the same way as restart-computer -force when using ```shutdown /r /f /t 0```.
11 years ago
Gonzalo Peci 70083fc869 Add reboot checks before moving out of the reboot.
11 years ago
Chris Bednarski abb67fdd79 Fix govet issues
11 years ago
Mitchell Hashimoto 7c8e86c9c5 provisioner/*: fix interpolation context
11 years ago
Mitchell Hashimoto 59766067c0 provisioner/windows-restart: make test pass on slow machines
11 years ago
Mitchell Hashimoto b2609db395 provisioner/windows-restart: fix potential panic case
11 years ago
Mitchell Hashimoto 7711e07f05 provisioner/windows-restart: test fix
11 years ago
Gonzalo Peci af4d8b99b4 Add quickfix to restart provisioner as existing one was not working.
11 years ago
Mitchell Hashimoto ab6a330d86 provisioner/*: fix go vet
11 years ago
Mitchell Hashimoto 840ddb4f20 provisioner/windows-restart
11 years ago