Replaced export statements in virtualbox integration tests with inline variables

Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
This commit is contained in:
Tom Barlow 2015-03-27 08:26:07 +00:00
parent f01b9ce800
commit 6e71cd3917
1 changed files with 2 additions and 6 deletions

View File

@ -285,17 +285,13 @@ findCPUCount() {
} }
@test "$DRIVER: can create custom machine using disk size and memory size via env vars" { @test "$DRIVER: can create custom machine using disk size and memory size via env vars" {
export VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE run machine create -d $DRIVER $NAME
export VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE
run machine create -d $DRIVER $NAME
export VIRTUALBOX_DISK_SIZE=
export VIRTUALBOX_MEMORY_SIZE=
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
} }
@test "$DRIVER: check machine's memory size was set correctly by env var" { @test "$DRIVER: check machine's memory size was set correctly by env var" {
findMemorySize findMemorySize
[[ ${output} == "${CUSTOM_MEMSIZE}" ]] [[ ${output} == "$CUSTOM_MEMSIZE" ]]
} }
@test "$DRIVER: check machine's disk size was set correctly by env var" { @test "$DRIVER: check machine's disk size was set correctly by env var" {