-
Notifications
You must be signed in to change notification settings - Fork 954
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance, make consistent and remove duplication in `ensure_vm_running` and `ensure_vm_shutdown` by introducing `wait_until_vm_state`. Remove noisy output and make the output consistent with other vboxcommon functions to make easier to call them from other scripts displaying a nice output. Remove also unneeded use of exceptions re-raising. Remove the waiting time of 2 minutes after calling `ensure_vm_running` from `ensure_vm_shutdown` when the state is `saved, as `ensure_vm_running` already waits for the state to change to `running`. Use `RuntimeError` instead of `TimeoutError`, as if the state didn't change in a minute, an error changing the state may have occurred.
- Loading branch information
Showing
1 changed file
with
40 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters