From 39848ccae795ed3b623f2b75dc5eb3ee4979aabd Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 28 Apr 2021 18:39:56 +0200 Subject: [PATCH] pull-test.sh: test importing csi-release-tools into other repo This will be used by special Prow pull jobs (https://github.com/kubernetes/test-infra/pull/21995) to ensure that an update csi-release-tools works in consuming repos. --- pull-test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 pull-test.sh diff --git a/pull-test.sh b/pull-test.sh new file mode 100755 index 000000000..f60f73c1e --- /dev/null +++ b/pull-test.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -ex + +CSI_RELEASE_TOOLS_DIR="$(pwd)" + +# Find the other repo. +# TODO: move this to Prow job. +ls -l /home/prow/go/src/github.com/kubernetes-csi +OTHER_REPO_DIR="/home/prow/go/src/github.com/kubernetes-csi$(ls /home/prow/go/src/github.com/kubernetes-csi | grep -v csi-release-tools)" + +# Update the other repo. +cd "$OTHER_REPO_DIR" +git subtree git subtree pull --squash --prefix=release-tools "$CSI_RELEASE_TOOLS_DIR" master + +# Now fall through to testing. +exec ./.prow.sh