code clean up
This commit is contained in:
@@ -65,7 +65,7 @@ def create_artifact_index_file(project_id=None, pipeline_id=None, case_group=Exa
|
||||
return "{}/list_job_{}.json".format(case_group.BUILD_LOCAL_DIR, parallel or 1)
|
||||
|
||||
for build_job_name in case_group.BUILD_JOB_NAMES:
|
||||
job_info_list = gitlab_inst.find_job_id(build_job_name, pipeline_id=pipeline_id, suffix='limit')
|
||||
job_info_list = gitlab_inst.find_job_id(build_job_name, pipeline_id=pipeline_id)
|
||||
for job_info in job_info_list:
|
||||
raw_data = gitlab_inst.download_artifact(job_info["id"], [format_build_log_path()])[0]
|
||||
build_info_list = [json.loads(line) for line in raw_data.splitlines()]
|
||||
|
||||
@@ -57,7 +57,6 @@ def main():
|
||||
|
||||
actions.add_parser('example_test', parents=[common])
|
||||
actions.add_parser('test_apps', parents=[common])
|
||||
# actions.add_parser('unit_test', parents=[common])
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -68,8 +67,6 @@ def main():
|
||||
elif args.action == 'test_apps':
|
||||
CIExampleAssignTest.CI_TEST_JOB_PATTERN = re.compile(r'^test_app_test_.+')
|
||||
assign = CIExampleAssignTest(path, args.ci_config_file, TestAppsGroup)
|
||||
# elif args.action == 'unit_test':
|
||||
# assign = UnitTestAssignTest(args.test_case, args.ci_config_file)
|
||||
else:
|
||||
raise SystemExit(1) # which is impossible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user