From 1005ad99f997cd57b0be062794a64408aa1a5042 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 21 Apr 2014 20:19:35 -0500 Subject: Speed up trace collection for CI. Change-Id: I77276cd016874f351d02fa7885ab28c7707d2e71 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10675 Tested-by: Jenkins Server Reviewed-by: Donald E. Dahle Reviewed-by: STEPHEN M. CPREK Reviewed-by: A. Patrick Williams III --- src/build/citest/autocitest | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/build') diff --git a/src/build/citest/autocitest b/src/build/citest/autocitest index 48ba60d92..499af98ae 100755 --- a/src/build/citest/autocitest +++ b/src/build/citest/autocitest @@ -74,7 +74,6 @@ function runtraceHB() { echo "Collect traceHB info..." - `pwd` #autosim $NOWIN --simcmd "run-python-file ${SBXHOME}/src/build/simics/hb-simdebug.py" #if [ $? -ne 0 ] ; then @@ -84,14 +83,16 @@ function runtraceHB() # exit 1 #fi - autosim $NOWIN --simcmd "hb-trace" --timeout 300 + autosim $NOWIN --simcmd "pipe hb-trace \"cat > traceHB.log\"" \ + --timeout 300 if [ $? -ne 0 ] ; then echo "ERROR 4 : Unable to run $?" stopsim stopserver exit 1 fi - + + mv ${SANDBOXBASE}/simics/traceHB.log ${SBXHOME}/traceHB.log } @@ -132,9 +133,6 @@ fi ## Find the .syms file for the image. Remove extension, add .syms. HBICORE_TEST_SYMS="${HBICORE_TEST%%.*}.syms" -CPFILES="${SBXHOME}/src/build/tools/hbDistribute" - - ## let's get set up cd $SBXHOME @@ -354,7 +352,7 @@ fi ## run CamVan's python script to dump out the trace logs echo "====> dump trace buffer(s)..." -runtraceHB 1> $SBXHOME/traceHB.log 2> /dev/null +runtraceHB if [ $? -ne 0 ] ; then echo "ERROR: Unable to run $?" stopsim -- cgit v1.2.1