chore: warn with file path

This commit is contained in:
张泊明518370910136 2025-06-01 21:41:42 -04:00
parent 26b128d2c7
commit 30a22dba49
GPG Key ID: D47306D7062CDA9D

View File

@ -258,7 +258,11 @@ def get_testcases(
testcases = set()
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
if not testcases_path.with_suffix(".out").exists():
logger.warning(f"Testcase {testcases_path} has no corresponding .out file")
logger.warning(
f"In file {task_root / task_path}, "
f"testcase {testcases_path} has no corresponding .out file, "
"skipped"
)
continue
testcases.add(
str(