generated from Java-2025Fall/final-vibevault-template
移除硬编码路径,使用命令行传入的参数
This commit is contained in:
parent
e265757617
commit
3b69599ab1
@ -24,8 +24,7 @@ def parse_args():
|
||||
|
||||
def load_test_groups(groups_file: str) -> Dict[str, Dict[str, any]]:
|
||||
"""加载测试分组配置"""
|
||||
# 直接写死文件在容器里的绝对路径(修正了项目名中的数字错误)
|
||||
groups_file = "/workspace/liyitian/2311061111-lyt/autograde/test_groups.json"
|
||||
# 使用命令行传入的文件路径
|
||||
with open(groups_file, 'r', encoding='utf-8') as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user