Skip to content

Commit

Permalink
Collecting Openj9 and Vendors repo SHA at stage time
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Dec 17, 2024
1 parent 2a8a653 commit 280ca14
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,6 @@ getTestKitGen()
echo "git checkout -q -f $tkg_sha"
git checkout -q -f $tkg_sha

checkTestRepoSHAs
}

getCustomJtreg()
Expand Down Expand Up @@ -660,6 +659,8 @@ getFunctionalTestMaterial()
else
mv openj9/test/functional functional
fi

rm -rf openj9
}

getVendorTestMaterial() {
Expand Down Expand Up @@ -742,6 +743,9 @@ getVendorTestMaterial() {
# already in TESTDIR, thus copy the entire vendor repo content to current directory
cp -r $dest/* ./
fi

# clean up
rm -rf $dest
done
}

Expand Down Expand Up @@ -803,26 +807,15 @@ testJavaVersion()

checkRepoSHA()
{
testenv_file="$TESTDIR/testenv/testenv.properties"
sha_file="$TESTDIR/TKG/SHAs.txt"
echo "$TESTDIR/TKG/scripts/getSHAs.sh --repo_dir $1 --output_file $sha_file"
$TESTDIR/TKG/scripts/getSHAs.sh --test_root_dir $1 --shas_file $sha_file

testenv_file="$TESTDIR/testenv/testenv.properties"
echo "$TESTDIR/TKG/scripts/getTestenvProperties.sh --repo_dir $1 --output_file $testenv_file --repo_name $2"
$TESTDIR/TKG/scripts/getTestenvProperties.sh --repo_dir $1 --output_file $testenv_file --repo_name $2
}

checkTestRepoSHAs()
{
echo "check adoptium repo and TKG repo SHA"

output_file="$TESTDIR/TKG/SHA.txt"
if [ -e ${output_file} ]; then
echo "rm $output_file"
rm ${output_file}
fi

checkRepoSHA "$TESTDIR" "ADOPTOPENJDK"
checkRepoSHA "$TESTDIR/TKG" "TKG"
}

checkOpenJ9RepoSHA()
{
echo "check OpenJ9 Repo sha"
Expand Down

0 comments on commit 280ca14

Please sign in to comment.