Skip to content

Commit

Permalink
Merge pull request konveyor#48 from aufi/fix-hub-branch
Browse files Browse the repository at this point in the history
Pass branch ref from CI to Hub API tests
  • Loading branch information
aufi authored Oct 20, 2023
2 parents 2a966b5 + 39c861d commit e4bd092
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hub-api/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
export BRANCH=$1
export HUB_TMP_DIR="/tmp/tackle2-hub-test"

# Upstream CI hack to use golang test ref input as branch for tests for releases.
if [ ! -z $GOLANG_TESTS_REF ] && [[ $GOLANG_TESTS_REF == release-* ]]; then
echo "Using branch '${GOLANG_TESTS_REF}' for Hub API tests."
export BRANCH=$GOLANG_TESTS_REF
fi

if [ -z $BRANCH ]; then
echo "Assuming 'main' branch to be used for Hub."
export BRANCH="main"
Expand Down

0 comments on commit e4bd092

Please sign in to comment.