init: cobol-java migration verification platform v3 (42 tests, JCL module)
This commit is contained in:
@@ -32,12 +32,20 @@ def main():
|
||||
vr = run_pipeline(cfg, data["copybook"], data["cobol_src"],
|
||||
data["java_src"], data["mapping"])
|
||||
|
||||
fields = [{"name":fr.field_name,"status":fr.status,
|
||||
"cobol":fr.cobol_value,"java":fr.java_value,
|
||||
"suggestion":fr.suggestion} for fr in vr.field_results]
|
||||
|
||||
data["status"] = "done"
|
||||
data["fields"] = fields
|
||||
data["debug"] = vr.debug
|
||||
data["result"] = {
|
||||
"program": vr.program, "status": vr.status,
|
||||
"matched": vr.fields_matched, "mismatched": vr.fields_mismatched,
|
||||
"duration": vr.duration_s, "runner": vr.runner,
|
||||
}
|
||||
if vr.report_path and "BLOCKED" in vr.status:
|
||||
data["build_log"] = vr.report_path
|
||||
tf.write_text(json.dumps(data))
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user