Skip to content

Commit

Permalink
keep .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Dec 20, 2024
1 parent 280ca14 commit ede8d5a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ getTestKitGen()
echo "git checkout -q -f $tkg_sha"
git checkout -q -f $tkg_sha

checkTestRepoSHAs
}

getCustomJtreg()
Expand Down Expand Up @@ -660,7 +661,9 @@ getFunctionalTestMaterial()
mv openj9/test/functional functional
fi

rm -rf openj9
cd openj9
find . -mindepth 1 ! -name ".git" ! -path "./.git/*" -exec rm -rf {} +
cd $TESTDIR
}

getVendorTestMaterial() {
Expand Down Expand Up @@ -745,7 +748,10 @@ getVendorTestMaterial() {
fi

# clean up
rm -rf $dest
cd $dest
find . -mindepth 1 ! -name ".git" ! -path "./.git/*" -exec rm -rf {} +
cd $TESTDIR

done
}

Expand Down Expand Up @@ -807,11 +813,8 @@ testJavaVersion()

checkRepoSHA()
{
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
}
Expand Down

0 comments on commit ede8d5a

Please sign in to comment.