if after_update_img_cnt == target_img_cnt:
print '[%s] reached the target_img_cnt(%s)!! trigger BUILD-MONITOR(Post_Image)\n' \
% (__file__, target_img_cnt)
- trigger_next("TEST-TRIGGER-INFO-UPDATE", checkinfo)
+
+ # check whether the image status is failed or not
+ skip_test_trigger = False
+ for each_item in checkinfo["images"]:
+ if each_item["status"] == "failed":
+ skip_test_trigger = True
+ print 'name:%s, status:%s' % (each_item["name"], each_item["status"])
+
+ if not skip_test_trigger:
+ trigger_next("TEST-TRIGGER-INFO-UPDATE", checkinfo)
+ else:
+ print 'skip_test_trigger!!\n'
if buildmonitor_enabled:
#buildmonitor.end_create_image_for_sr_stage(bm_start_datetime,