Expand description
Provides utility functions used by multiple fixture files.
Enums§
Constants§
Traits§
- Child
Ext - Extension trait for utilities on std::process::Child
- Command
Ext - Extension trait for utilities on std::process::Command
Functions§
- create_
vu_ block_ config - create_
vu_ console_ multiport_ config - find_
crosvm_ binary - Returns the path to the crosvm binary to be tested.
- prepare_
disk_ img - Prepare a temporary ext4 disk file.
- retry
- Calls the
closureuntil it returns a non-error Result. If it has been re-triedretriestimes, the last result is returned. - retry_
with_ delay - Calls the
closureuntil it returns a non-error Result. If it has been re-triedretriestimes, the last result is returned. Waitsdelaybetween attempts. - run_
with_ status_ check - Run the provided closure in a separate thread and return it’s result. If the closure does not finish, continue_fn is called periodically with interval while continue_fn return true. Once continue_fn return false, an Error is returned instead.
- run_
with_ timeout - Run the provided closure in a separate thread and return it’s result. If the closure does not finish before the timeout is reached, an Error is returned instead.