mirror of https://github.com/docker/docs.git
Specifying env vars inline on BATS doesn't seem to work, switched to export
Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
This commit is contained in:
parent
c221a0a42f
commit
f01b9ce800
|
@ -285,7 +285,11 @@ findCPUCount() {
|
|||
}
|
||||
|
||||
@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
|
||||
export VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE
|
||||
export VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE
|
||||
run machine create -d $DRIVER $NAME
|
||||
export VIRTUALBOX_DISK_SIZE=
|
||||
export VIRTUALBOX_MEMORY_SIZE=
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue