diff --git a/test/test-reconciler-codegen.sh b/test/test-reconciler-codegen.sh index 151d1321b..c1c35c24b 100755 --- a/test/test-reconciler-codegen.sh +++ b/test/test-reconciler-codegen.sh @@ -18,7 +18,9 @@ set -o errexit set -o nounset set -o pipefail -source $(dirname $0)/../vendor/knative.dev/hack/library.sh +#source $(dirname $0)/../vendor/knative.dev/hack/library.sh +[[ ! -v REPO_ROOT_DIR ]] && REPO_ROOT_DIR="$(git rev-parse --show-toplevel)" +readonly REPO_ROOT_DIR CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 $(dirname $0)/../vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)} KNATIVE_CODEGEN_PKG=${KNATIVE_CODEGEN_PKG:-$(cd ${REPO_ROOT_DIR}; ls -d -1 $(dirname $0)/../vendor/knative.dev/pkg 2>/dev/null || echo ../pkg)}