test=$(echo "$line" | sed 's/ */ /g'| awk -F' ' '{print $1}')
action=$(echo "$line" | sed 's/ */ /g'| awk -F' ' '{print $2}')
if eval $test; then
- log "$(printf '%02d' $lineno) starting ${action}(), (test $test passed)"
+ log "$(printf 'action %02d' $lineno) starting: '${action}' if '$test'"
eval $action
- log "$(printf '%02d' $lineno) finished ${action}()"
+ log "$(printf 'action %02d' $lineno) finished: '${action}'"
else
- log "$(printf '%02d' $lineno) skipping ${action}(), (test $test failed)"
+ log "$(printf 'action %02d' $lineno) skipping: '${action}' if '$test'"
fi
[ "$lineno2" -gt "$lineno" ] && lineno=$lineno2
done