From 4886c09c35136cb42925a8567c3eac122a0c2997 Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Sat, 16 May 2015 13:33:59 +0000
Subject: [PATCH] use own version of cb-test to speed things up

Former-commit-id: 0b73d1c5c49d77e368b5f0bfd6ac5a6f2d84bf9c
---
 tools/cgc_protect/pov_to_cso.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/cgc_protect/pov_to_cso.sh b/tools/cgc_protect/pov_to_cso.sh
index 484a46e61..6a3f6863d 100755
--- a/tools/cgc_protect/pov_to_cso.sh
+++ b/tools/cgc_protect/pov_to_cso.sh
@@ -13,6 +13,8 @@ CSO_FILE=$4      # output: CSO warning file suitable for sandboxing step
 
 log=tmp.log.$$
 
+cbtest=$CGC_UMBRELLA_DIR/scripts/techx-cb-test
+
 CRASH_SITES=tmp.crashes.$$
 
 # run cb-test on each POV invidually
@@ -27,12 +29,12 @@ do
 	core=${binary_dir}/core
 
 	sudo rm $core 2>/dev/null
-	sudo cb-test --debug --xml ${one_pov} --timeout 20 --directory ${binary_dir} --cb ${binary} --log $log 
+	sudo $cbtest --debug --xml ${one_pov} --timeout 20 --directory ${binary_dir} --cb ${binary} --log $log 
 	grep "core identified" $log
 	if [ $? -eq 0 ]; then
 		if [ -f $core ]; then
 			sudo chown `whoami` $core 
-			eip=`$PEASOUP_HOME/tools/extract_eip_from_core.sh ${CGC_BIN} $core`
+			eip=`timeout 20 $PEASOUP_HOME/tools/extract_eip_from_core.sh ${CGC_BIN} $core`
 			if [ $? -eq 0 ]; then
 				echo "$eip" >> $CRASH_SITES
 			fi
-- 
GitLab