Skip to content

Commit

Permalink
pull-test.sh: test importing csi-release-tools into other repo
Browse files Browse the repository at this point in the history
This will be used by special Prow pull
jobs (kubernetes/test-infra#21995) to ensure
that an update csi-release-tools works in consuming repos.
  • Loading branch information
pohly committed Apr 28, 2021
1 parent bc0504a commit c2a3959
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pull-test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c2a3959

Please sign in to comment.