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:
Tom Barlow 2015-03-26 21:33:18 +00:00
parent c221a0a42f
commit f01b9ce800
1 changed files with 5 additions and 1 deletions

View File

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