(pec, sol_code, stu_code, sol_wd=None, stu_wd=None, **kwargs)
| 188 | |
| 189 | |
| 190 | def run_exercise(pec, sol_code, stu_code, sol_wd=None, stu_wd=None, **kwargs): |
| 191 | with ChDir(sol_wd or os.getcwd()): |
| 192 | sol_process, _, _ = run_single_process(pec, sol_code, **kwargs) |
| 193 | |
| 194 | with ChDir(stu_wd or os.getcwd()): |
| 195 | stu_process, raw_stu_output, error = run_single_process(pec, stu_code, **kwargs) |
| 196 | |
| 197 | return sol_process, stu_process, raw_stu_output, error |
| 198 | |
| 199 | |
| 200 | # todo: |