From 6e71cd3917b9211f55f7a64d8c2f4ef8faacbd82 Mon Sep 17 00:00:00 2001 From: Tom Barlow Date: Fri, 27 Mar 2015 08:26:07 +0000 Subject: [PATCH] Replaced export statements in virtualbox integration tests with inline variables Signed-off-by: Tom Barlow --- test/integration/driver-virtualbox.bats | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/integration/driver-virtualbox.bats b/test/integration/driver-virtualbox.bats index cdd7ffba43..bb79953eb6 100644 --- a/test/integration/driver-virtualbox.bats +++ b/test/integration/driver-virtualbox.bats @@ -285,17 +285,13 @@ findCPUCount() { } @test "$DRIVER: can create custom machine using disk size and memory size via env vars" { - 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= + VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE run machine create -d $DRIVER $NAME [ "$status" -eq 0 ] } @test "$DRIVER: check machine's memory size was set correctly by env var" { findMemorySize - [[ ${output} == "${CUSTOM_MEMSIZE}" ]] + [[ ${output} == "$CUSTOM_MEMSIZE" ]] } @test "$DRIVER: check machine's disk size was set correctly by env var" {