Fix .go-autogen warnings
@@ -5,8 +5,10 @@
#
# TESTFLAGS='-check.f DockerSuite.TestBuild*' ./hack/make.sh binary test-integration
-
-source "$SCRIPTDIR/make/.go-autogen"
+if [ -z $MAKEDIR ]; then
+ export MAKEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+fi
+source "$MAKEDIR/.go-autogen"
# Set defaults
: ${TEST_REPEAT:=1}
@@ -2,7 +2,6 @@
# required by `make build-integration-cli-on-swarm`
set -e
-source "${MAKEDIR}/.go-autogen"
source hack/make/.integration-test-helpers
build_test_suite_binaries
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
set -e -o pipefail
(