# HG changeset patch # User iklam # Date 1444076701 25200 # Node ID 6580bf263d0058060e4759c4f1e99bfcbfffb561 # Parent 63aca8d49f2a9ff133a77e38d7f42b697ac54f1e 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 diff -r 63aca8d49f2a -r 6580bf263d00 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}