mirror of
https://github.com/docker/docs.git
synced 2026-11-06 12:54:24 +03:00
check for VM in virtualbox; add stub for coverage
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
@@ -16,6 +16,11 @@ function setup() {
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "$DRIVER: VM should not exist" {
|
||||
run VBoxManage showvminfo $NAME
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "$DRIVER: create" {
|
||||
run machine create -d $DRIVER $NAME
|
||||
[ "$status" -eq 0 ]
|
||||
@@ -109,6 +114,11 @@ function setup() {
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "$DRIVER: VM should not exist" {
|
||||
run VBoxManage showvminfo $NAME
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "$DRIVER: cleanup" {
|
||||
run rm -rf $MACHINE_STORAGE_PATH
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
2
test/test.go
Normal file
2
test/test.go
Normal file
@@ -0,0 +1,2 @@
|
||||
// stub for coverage
|
||||
package test
|
||||
Reference in New Issue
Block a user