mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8078295: hotspot test_env.sh can set VM_CPU incorrectly
Use sed script to filter out irrelevant parts of -Xinternalversion Reviewed-by: dlong, dcubed, dsamersoff
This commit is contained in:
parent
9744fb1f05
commit
af9ada0eb2
@ -111,7 +111,8 @@ if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xinternalversion > vm_version.out 2>&1
|
||||
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xinternalversion | sed -e 's/[(][^)]*[)]//g' -e 's/ by "[^"]*"//g' > vm_version.out 2>&1
|
||||
echo "INT_VERSION=`cat vm_version.out 2>&1`"
|
||||
|
||||
VM_TYPE="unknown"
|
||||
grep "Server" vm_version.out > ${NULL}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user