8078295: hotspot test_env.sh can set VM_CPU incorrectly
Summary: Use sed script to filter out irrelevant parts of -Xinternalversion
Reviewed-by: dlong, dcubed, dsamersoff
--- a/hotspot/test/test_env.sh Mon Sep 28 12:57:47 2015 +0200
+++ b/hotspot/test/test_env.sh Mon Oct 05 13:25:01 2015 -0700
@@ -111,7 +111,8 @@
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}