| # $SAI_INSTANCE_IDX - which instance of sai, 0+ |
| # $1 - background fixture name, unique within test space, like "multipostlocalsrv" |
| J=`basename $2`.$1.$SAI_INSTANCE_IDX |
| PI=`cat /tmp/sai-ctest-$J` |
| # We expect our background process to initially still be around |
| echo "Background task $PI: $J" |
| if [ $GONESKI -eq 1 ] ; then |
| echo "Background Process $PI unexpectedly dead already, their log" |
| cat /tmp/ctest-background-$J |
| # 100ms intervals, 100 = 10s |
| # need to allow time for valgrind case |
| while [ $BUDGET -ne 0 ] ; do |
| BUDGET=$(( $BUDGET - 1 )) |
| # 100ms intervals, 100 = 10s |
| # need to allow time for valgrind case |
| while [ $BUDGET -ne 0 ] ; do |
| echo "Went down OK after SIGKILL" |
| BUDGET=$(( $BUDGET - 1 )) |