Skip to content

Commit

Permalink
WIP: test
Browse files Browse the repository at this point in the history
  • Loading branch information
pohly committed Nov 22, 2023
1 parent f9d5b9c commit 4b035d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [csi-release-tools](https://github.com/kubernetes-csi/csi-release-tools)

Test....

These build and test rules can be shared between different Go projects
without modifications. Customization for the different projects happen
in the top-level Makefile.
Expand Down
13 changes: 12 additions & 1 deletion pull-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@

set -ex

git version

# It must be called inside the updated csi-release-tools repo.
CSI_RELEASE_TOOLS_DIR="$(pwd)"

# Update the other repo.
cd "$PULL_TEST_REPO_DIR"
git subtree pull --squash --prefix=release-tools "$CSI_RELEASE_TOOLS_DIR" master
git reset --hard # Shouldn't be necessary, but somehow is to avoid "fatal: working tree has modifications. Cannot add." (https://stackoverflow.com/questions/3623351/git-subtree-pull-says-that-the-working-tree-has-modifications-but-git-status-sa)
if ! git subtree pull --squash --prefix=release-tools "$CSI_RELEASE_TOOLS_DIR" master; then
set +e
git status
git diff
git diff-index HEAD
git reset --hard
git diff-index HEAD
exit 1
fi
git log -n2

# Now fall through to testing.
Expand Down

0 comments on commit 4b035d6

Please sign in to comment.