Skip to content

Commit

Permalink
Fix autocitest simics attempt numbering
Browse files Browse the repository at this point in the history
  - 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>
  • Loading branch information
wghoffa authored and Nicholas E. Bofferding committed Mar 14, 2019
1 parent 9145082 commit 8b9e2d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/build/citest/autocitest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2011,2018
# Contributors Listed Below - COPYRIGHT 2011,2019
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -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
Expand All @@ -211,6 +211,8 @@ while [ $current_attempts -lt $max_start_simics_attempts ]; do
((current_attempts++))
done



waitkb

# open simics telnet port
Expand Down

0 comments on commit 8b9e2d4

Please sign in to comment.