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:
Mikhail Zholobov 2015-11-05 12:27:54 +02:00
parent 29a0ef6853
commit d07d443466
1 changed files with 1 additions and 2 deletions

View File

@ -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
}