Skip to content
Snippets Groups Projects
Commit cd3dbd55 authored by Mario's avatar Mario
Browse files

WIP. minor improvement

parent 104f50f6
No related branches found
No related tags found
No related merge requests found
Pipeline #2425974 passed
...@@ -153,11 +153,14 @@ max_reps=$(jq -j '.common_config.max_trials_in_case_of_failure' $SCANCFG) ...@@ -153,11 +153,14 @@ max_reps=$(jq -j '.common_config.max_trials_in_case_of_failure' $SCANCFG)
START_YR=$(date +%s.%N) START_YR=$(date +%s.%N)
reps=0; retval=-1 reps=0; retval=-1
while [ retval != 0 ]; do while [ true ]; do
((reps++)) ((reps++))
$comm # call Yarr $comm # call Yarr
retval=$? retval=$?
if [ $retval -eq 0 ]; then
break
fi
if [ $retval -ne 0 ] && [ $reps -ge $max_reps ]; then if [ $retval -ne 0 ] && [ $reps -ge $max_reps ]; then
echo "[ warn ][sl] After $max_reps attempts, couldn't succesfully finish $scanName." echo "[ warn ][sl] After $max_reps attempts, couldn't succesfully finish $scanName."
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment