Mark Peek
d87b68efe8
Syncronize cancellation in windows-restart tests
...
Two windows-restart tests would timeout and fail due to the cancellation
thread firing before the cancel object was created. This change syncronizes
the start of the threads to prevent this from occurring.
2015-10-10 14:32:39 -07:00
Gonzalo Peci
f01f62dc88
Add specific exit codes listed on https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx
2015-08-28 09:55:14 +12:00
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.
2015-08-28 09:54:59 +12:00
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```.
...
Note:The WinRM library does not return the exit code currently, this will be implemented on https://github.com/masterzen/winrm/pull/26
2015-08-28 09:54:39 +12:00
Gonzalo Peci
70083fc869
Add reboot checks before moving out of the reboot.
2015-08-28 09:54:24 +12:00
Chris Bednarski
abb67fdd79
Fix govet issues
2015-08-05 19:41:29 -07:00
Mitchell Hashimoto
7c8e86c9c5
provisioner/*: fix interpolation context
2015-06-22 12:26:54 -07:00
Mitchell Hashimoto
59766067c0
provisioner/windows-restart: make test pass on slow machines
2015-06-19 06:13:51 +02:00
Mitchell Hashimoto
b2609db395
provisioner/windows-restart: fix potential panic case
2015-06-17 18:22:27 +02:00
Mitchell Hashimoto
7711e07f05
provisioner/windows-restart: test fix
2015-06-17 17:56:31 +02:00
Gonzalo Peci
af4d8b99b4
Add quickfix to restart provisioner as existing one was not working.
...
For more information read https://github.com/mitchellh/packer/pull/2243
2015-06-17 12:29:10 +12:00
Mitchell Hashimoto
ab6a330d86
provisioner/*: fix go vet
2015-06-14 12:39:39 -07:00
Mitchell Hashimoto
840ddb4f20
provisioner/windows-restart
2015-06-14 11:14:47 -07:00