summaryrefslogtreecommitdiffstats
path: root/src/build/citest
diff options
context:
space:
mode:
authorBill Hoffa <wghoffa@us.ibm.com>2019-03-13 14:22:55 -0500
committerNicholas E. Bofferding <bofferdn@us.ibm.com>2019-03-14 09:59:17 -0500
commit8b9e2d415060469bb79f91065091966b12ee8eaa (patch)
treed291dc6621476c40860511e8062e67fd721b4af0 /src/build/citest
parent9145082bb0ca4a8788765a8d11f1694cbd63f9ca (diff)
downloadtalos-hostboot-8b9e2d415060469bb79f91065091966b12ee8eaa.tar.gz
talos-hostboot-8b9e2d415060469bb79f91065091966b12ee8eaa.zip
Fix autocitest simics attempt numbering
- This will cause the script to error out rather than continue on after simics fails to start Change-Id: I99ea12b5bcbc2e238dbc2f949511ff9a95245638 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/73284 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/build/citest')
-rwxr-xr-xsrc/build/citest/autocitest8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/build/citest/autocitest b/src/build/citest/autocitest
index 8048f23a4..62cfac804 100755
--- a/src/build/citest/autocitest
+++ b/src/build/citest/autocitest
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2011,2018
+# Contributors Listed Below - COPYRIGHT 2011,2019
# [+] International Business Machines Corp.
#
#
@@ -191,8 +191,8 @@ echo "Attempting to start simics"
#autosim $VERBOSE --startsim --chkpt standby <<< chkpt not working yet
max_start_simics_attempts=5
-current_attempts=0
-while [ $current_attempts -lt $max_start_simics_attempts ]; do
+current_attempts=1
+while [ $current_attempts -le $max_start_simics_attempts ]; do
echo "> Attempt $current_attempts/$max_start_simics_attempts to start simics"
autosim $NOWIN $VERBOSE --startsim $NRE --notar
if [ $? -ne 0 ] ; then
@@ -211,6 +211,8 @@ while [ $current_attempts -lt $max_start_simics_attempts ]; do
((current_attempts++))
done
+
+
waitkb
# open simics telnet port
OpenPOWER on IntegriCloud