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 726a293
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ getFunctionalTestMaterial()
else
mv openj9/test/functional functional
fi

rm -rf openj9
}

getVendorTestMaterial() {
Expand Down Expand Up @@ -742,6 +744,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 +808,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 726a293

Please sign in to comment.