Add tempary_test_code to reduce test time - which is basically disabled
authorSoonKyu Park <sk7.park@samsung.com>
Mon, 18 Jun 2018 05:21:20 +0000 (14:21 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 31 Jan 2019 01:21:23 +0000 (10:21 +0900)
Change-Id: I4f3447e96fc2d2277643514c5e29ab39ca11a79d

job_gbs_dashboard_build.py
job_gbsdbbuild_one_repoarch_build.py

index 79eed15..b1e0c82 100644 (file)
@@ -83,6 +83,10 @@ def main():
                     add_to_img_list[-1]['rpm_name'] = pkg.values()[0]['rpm_name']
                     add_to_img_list[-1]['pattern_name'] = pkg.values()[0]['pattern_name']
 
+    #tempary_test_code
+    #temprary add_to_img_list
+#    add_to_img_list = [{'git_name':'platform/core/api/haptic','rpm_name':'capi-system-haptic','pattern_name':'mobile-middleware'}, {'git_name':'platform/core/api/usb-accessory','rpm_name':'capi-system-usb-accessory','pattern_name':'mobile-middleware'}]
+
     gbsbuild_tag = contents.get("tag")
 
     print "Build Parameters:\nobs_prj: %s\nsnapshot_num: %s\ntrigger_category: %s\nnew_pkg_list: %s\nrm_pkg_list: %s\nrm_from_img_list: %s\ngbsbuild_tag:%s\n" %(obs_prj,snapshot_num,trigger_category,new_pkg_list,rm_pkg_list,rm_from_img_list,gbsbuild_tag)
@@ -109,7 +113,9 @@ def main():
 
     repo_arch_list = []
     for repo in gbsbuild_dic['repository']:
+#tempary_test_code    for repo in ['standard']:
         for arch in gbsbuild_dic['arch_list'][repo]:
+#tempary_test_code        for arch in ['armv7l']:
             print 'OBS Project: %s, repository: %s, architecture: %s gbs build start'\
                    %(gbsbuild_dic['obs_prj'],repo,arch)
             repo_arch_list.append({"repo":repo,"arch":arch})
@@ -120,6 +126,8 @@ def main():
                      'new_pkg_list':new_pkg_list,
                      'rm_pkg_list':rm_pkg_list,
                      'rm_from_img_list':rm_from_img_list})
+#tempary_test_code
+#    return 0
 
     if buildmonitor_enabled:
         gbs_update_data = {"tag" : gbsbuild_dic['gbsbuild_tag'],
index 89303fd..96a50d4 100644 (file)
@@ -187,6 +187,8 @@ def main():
     (repo_init_sync_status,repo_init_sync_status_reason) = gbsbuild_sub._do_repo_init_sync(repository)
     print repo_init_sync_status
     print repo_init_sync_status_reason
+#tempary_test_code
+#    return 0
     # if repo init or repo sync failed, do not perform gbs build, and just update dashboard
     if repo_init_sync_status == 'F':
         if buildmonitor_enabled: