← Commit history

planner sync: gate self-test works on a copy of the good etch

John Lauer ·b850e82fb1 ·18d ago ·parent 8b75307
2 files changed +5−3
planner/SOURCE.json+1−1
@@ -11,6 +11,6 @@   "mark_svc.py": "5c9a7c74209fd1ce7c35cc1fddfdf2027f140dfe27fb466ace0b651ef649b7e1",   "proxy_box.step": "4fda23eee6a720c3dd698f7d0ae0dbdab3d1d2e5740d7e6009449bf9dbbe7ccf",   "step_text.py": "6a36d9dea6d45bb8c47706a4f17ab76d4db897cb140790f75d2f3d887d8edd74",-  "test_mark_gate.py": "096d9ca1560b6ac5dae909efe45f9d1004d9155cec046a1d977cdca127d6bb0f"+  "test_mark_gate.py": "299980c75b0f275755ea8dbf702ef795c2ceedb624b48ff4b2564bac7c2a9fdb"  } }\ No newline at end of file
planner/test_mark_gate.py+4−2
@@ -28,8 +28,10 @@ def main():     a = ap.parse_args()     os.makedirs(a.out_dir, exist_ok=True)     d = lambda n: os.path.join(a.out_dir, f"{a.mpn}-{n}.step")-    good = a.good or d("good")-    if not a.good:+    good = d("good")+    if a.good:                              # work on a copy: the gate writes reports beside the STEP it checks+        shutil.copyfile(a.good, good)+    else:         ME.etch(a.step, a.mpn, good, a.footprint)     plan = ME.MP.plan(a.step, a.footprint, a.mpn)     cases = {}