mirror of https://github.com/docker/docs.git
test/integration: Remove machine forcibly, without stopping
Unlikely "rm -f", commands "stop" and "rm" will be failed if machine doesn't exist. Forced removing guarantees that integration tests won't fail on the cleanup step. Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
This commit is contained in:
parent
29a0ef6853
commit
d07d443466
|
|
@ -15,8 +15,7 @@ function quiet_run () {
|
|||
|
||||
function cleanup_machines() {
|
||||
if [[ $(machine ls -q | wc -l) -ne 0 ]]; then
|
||||
quiet_run machine stop $(machine ls -q)
|
||||
quiet_run machine rm $(machine ls -q)
|
||||
quiet_run machine rm -f $(machine ls -q)
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue