From 29deacba2f5d228f06a7ec4b2b4891692c1d2706 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 30 Apr 2015 13:27:58 -0700 Subject: [PATCH] fix integration test build of swarm Signed-off-by: Andrea Luzzardi --- test/integration/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/helpers.bash b/test/integration/helpers.bash index 9791815dc1..869b3e9ef8 100644 --- a/test/integration/helpers.bash +++ b/test/integration/helpers.bash @@ -25,7 +25,7 @@ function join() { # Build the Swarm binary (if not already built) function build_swarm() { - [ -x $SWARM_BINARY ] || (cd $SWARM_ROOT && godep go build -o $SWARM_BINARY) + [ -x $SWARM_BINARY ] || (rm -f $SWARM_BINARY && cd $SWARM_ROOT && godep go build -o $SWARM_BINARY) } # Run the swarm binary. You must NOT fork this command (swarm foo &) as the PID