Skip to content

Commit a737e6e

Browse files
committed
Fixed vagrant cleanup in functional tests
1 parent e0e5ae2 commit a737e6e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
Version 0.3.1 (2012-03-19)
5+
--------------------------
6+
7+
* Fixed bug in functional tests runner
8+
49
Version 0.3 (2012-03-19)
510
------------------------
611

fabtools/tests/vagrant.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ def halt_and_destroy():
3030
Halt and destoy virtual machine
3131
"""
3232
with lcd(os.path.dirname(__file__)):
33-
local('vagrant halt')
34-
if version() >= (0, 9, 99):
35-
local('vagrant destroy -f')
36-
else:
37-
local('vagrant destroy')
33+
if os.path.exists('Vagrantfile'):
34+
local('vagrant halt')
35+
if version() >= (0, 9, 99):
36+
local('vagrant destroy -f')
37+
else:
38+
local('vagrant destroy')
3839

3940

4041
def base_boxes():

0 commit comments

Comments
 (0)