mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user