Moved cleanup of machine store to end of virtualbox integration test

Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
This commit is contained in:
Tom Barlow 2015-03-26 19:55:53 +00:00
parent 0e1db73829
commit c221a0a42f
1 changed files with 5 additions and 5 deletions

View File

@ -284,11 +284,6 @@ findCPUCount() {
[ "$status" -eq 0 ]
}
@test "$DRIVER: cleanup" {
run rm -rf $MACHINE_STORAGE_PATH
[ "$status" -eq 0 ]
}
@test "$DRIVER: can create custom machine using disk size and memory size via env vars" {
run VIRTUALBOX_DISK_SIZE=${CUSTOM_DISKSIZE} VIRTUALBOX_MEMORY_SIZE=${CUSTOM_MEMSIZE} machine create -d $DRIVER $NAME
[ "$status" -eq 0 ]
@ -315,4 +310,9 @@ findCPUCount() {
[ "$status" -eq 0 ]
}
# Cleanup of machine store should always be the last 'test'
@test "$DRIVER: cleanup" {
run rm -rf $MACHINE_STORAGE_PATH
[ "$status" -eq 0 ]
}