- inn = e.cfgs["TESTCASE_IN"]
- in_type = e.cfgs["IN_TYPE"] or e.cfgs["IO_TYPE"]
- out_type = e.cfgs["OUT_TYPE"] or e.cfgs["IO_TYPE"]
- is_interactive = e.cfgs["TASK_TYPE"] == "interactive"
- sandbox_opts = "-M" + os.path.join(tdir, e.cfgs["TEST"] + ".status")
-
- if not os.path.exists(os.path.join(tdir, e.cfgs["EXE"])):
- ## FIXME: status file
- raise SolutionErr, "Compilation failed"
- shutil.copyfile(os.path.join(tdir, e.cfgs["EXE"]), os.path.join(boxdir, e.cfgs["EXE"]))
- os.chmod(os.path.join(boxdir, e.cfgs["EXE"]), 0555)
+ inn = e["TESTCASE_IN"]
+ in_type = e["IN_TYPE"] or e["IO_TYPE"]
+ out_type = e["OUT_TYPE"] or e["IO_TYPE"]
+ is_interactive = e["TASK_TYPE"] == "interactive"
+ sandbox_opts = "-M" + os.path.join(tdir, e["TESTCASE_STATUS"])
+
+ if not os.path.exists(os.path.join(tdir, e["EXE"])):
+ raise TestError("Compilation failed", "CE")
+ shutil.copyfile(os.path.join(tdir, e["EXE"]), os.path.join(boxdir, e["EXE"]))
+ os.chmod(os.path.join(boxdir, e["EXE"]), 0555)