Skip to content

Commit

Permalink
No not remove the .git repo dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Dec 16, 2024
1 parent c402bf7 commit d4580a6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,6 @@ getFunctionalTestMaterial()
else
mv openj9/test/functional functional
fi

rm -rf openj9
}

getVendorTestMaterial() {
Expand Down Expand Up @@ -734,19 +732,16 @@ getVendorTestMaterial() {
# move resources
if [ "$dir" != "" ] && [ -d $dest/$dir ]; then
echo "Stage $dest/$dir to $TESTDIR/$dir"
# already in TESTDIR, thus copy $dir to current directory
cp -r $dest/$dir ./
# already in TESTDIR, thus move $dir to current directory
mv $dest/$dir/* ./
if [[ "$PLATFORM" == *"zos"* ]]; then
cp -r $dest/.git ./$dir
fi
else
echo "Stage $dest to $TESTDIR"
# already in TESTDIR, thus copy the entire vendor repo content to current directory
cp -r $dest/* ./
mv $dest/$dir ./
fi

# clean up
rm -rf $dest
done
}

Expand Down Expand Up @@ -863,7 +858,7 @@ if [[ $JDK_IMPL == 'hotspot' && $JDK_VERSION == '8' && $PLATFORM =~ 'alpine-linu
fi

if [ "$SDKDIR" != "" ]; then
getBinaryOpenjdk
getBinaryOpenjdk
testJavaVersion
fi

Expand Down

0 comments on commit d4580a6

Please sign in to comment.