From c236e2f11d25c70204d89086a8cb7c2da3f6c7eb Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 May 2015 13:59:33 -0700 Subject: [PATCH] integration runner: run tests on a fresh binary. Signed-off-by: Andrea Luzzardi --- test/integration/test_runner.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/test_runner.sh b/test/integration/test_runner.sh index 2ec564fe30..c9d8a3bd75 100755 --- a/test/integration/test_runner.sh +++ b/test/integration/test_runner.sh @@ -14,6 +14,12 @@ function execute() { # Tests to run. Defaults to all. TESTS=${@:-.} +# Generate a temporary binary for the tests. +export SWARM_BINARY=`mktemp` + +# Build Swarm. +execute go build -o "$SWARM_BINARY" ../.. + # Start the docker engine. execute docker --daemon --log-level=panic \ --storage-driver="$STORAGE_DRIVER" --exec-driver="$EXEC_DRIVER" &