+ if [ "$RID" == 'null' ];then
+ sleep 20
+ echo "DEBUG: retry start $NAMEID"
+ do_afm_util start $NAMEID > "rid"
+ if [ $? -ne 0 ];then
+ echo "ERROR: afm-util start"
+ lava-test-case afm-util-start-$WGTNAME --result fail
+ continue
+ fi
+ RID="$(cat rid)"
+ fi
+
+ if [ "$RID" == 'null' ];then
+ echo "ERROR: RID is null, service fail to start"
+ lava-test-case afm-util-status-$WGTNAME --result fail
+ continue
+ fi