Skip to content

Commit 90615f4

Browse files
committed
Run harness tests against 3 previous versions and HEAD
1 parent a6e58f7 commit 90615f4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/rekor-harness.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,17 @@ function run_tests () {
8787
fi
8888
}
8989

90-
# Get last 3 server versions
90+
# Get last 2 server versions
9191
git fetch origin
92-
NUM_VERSIONS_TO_TEST=3
92+
NUM_VERSIONS_TO_TEST=2
9393
VERSIONS=$(git tag --sort=-version:refname | head -n $NUM_VERSIONS_TO_TEST | tac)
94+
95+
# Also add the commit @ HEAD
96+
HEAD=$(git log --pretty="%H" -n 1 )
97+
echo "Also testing at HEAD at commit $HEAD"
98+
99+
VERSIONS="$VERSIONS $HEAD"
100+
94101
echo $VERSIONS
95102

96103
export REKOR_HARNESS_TMPDIR="$(mktemp -d -t rekor_test_harness.XXXXXX)"

0 commit comments

Comments
 (0)