changeset 9410:786145ca3cdc

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
author iklam
date Mon, 05 Oct 2015 13:25:01 -0700
parents d9d44c9d7bf0
children f6da147987bb
files test/test_env.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_env.sh	Mon Sep 28 12:57:47 2015 +0200
+++ b/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}