#!/usr/bin/env python3
import pathlib, subprocess, sys
root=pathlib.Path('/tmp/lead-28256-r1/evidence-capture')
for row in ('F07','F08','F09','F10','F11'):
    for side,checkout in [('before','/home/ubuntu/wt/pr-28256-base'),('after','/home/ubuntu/wt/pr-28256')]:
        if row=='F07' and side=='before':continue # captured separately with the same capture.py
        argv=[sys.executable,str(root/'capture.py'),'--checkout',checkout,'--row',row,'--side',side]
        print('RUN',row,side,flush=True)
        p=subprocess.run(argv,stdout=subprocess.DEVNULL)
        print('DONE',row,side,'driver exit',p.returncode,flush=True)
        if p.returncode:sys.exit(p.returncode)
