Skip to content

Commit 8b9e2d4

Browse files
wghoffaNicholas E. Bofferding
authored andcommitted
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>
1 parent 9145082 commit 8b9e2d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/build/citest/autocitest

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# OpenPOWER HostBoot Project
88
#
9-
# Contributors Listed Below - COPYRIGHT 2011,2018
9+
# Contributors Listed Below - COPYRIGHT 2011,2019
1010
# [+] International Business Machines Corp.
1111
#
1212
#
@@ -191,8 +191,8 @@ echo "Attempting to start simics"
191191

192192
#autosim $VERBOSE --startsim --chkpt standby <<< chkpt not working yet
193193
max_start_simics_attempts=5
194-
current_attempts=0
195-
while [ $current_attempts -lt $max_start_simics_attempts ]; do
194+
current_attempts=1
195+
while [ $current_attempts -le $max_start_simics_attempts ]; do
196196
echo "> Attempt $current_attempts/$max_start_simics_attempts to start simics"
197197
autosim $NOWIN $VERBOSE --startsim $NRE --notar
198198
if [ $? -ne 0 ] ; then
@@ -211,6 +211,8 @@ while [ $current_attempts -lt $max_start_simics_attempts ]; do
211211
((current_attempts++))
212212
done
213213

214+
215+
214216
waitkb
215217

216218
# open simics telnet port

0 commit comments

Comments
 (0)