8078295: hotspot test_env.sh can set VM_CPU incorrectly
authoriklam
Mon, 05 Oct 2015 13:25:01 -0700
changeset 33121 6580bf263d00
parent 33120 63aca8d49f2a
child 33122 cdb3e19c1d9e
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
hotspot/test/test_env.sh
--- 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}