From 9660ece52d4b124ff1b8f8e6e0756a221f6e7d4b Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sun, 20 Oct 2024 04:59:39 -0400 Subject: [PATCH] feat: set default CopyInDir --- joj3_config_generator/models/result.py | 2 +- tests/basic/task.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/joj3_config_generator/models/result.py b/joj3_config_generator/models/result.py index 40306ee..f1dd8e7 100644 --- a/joj3_config_generator/models/result.py +++ b/joj3_config_generator/models/result.py @@ -32,7 +32,7 @@ class Cmd(BaseModel): cpu_set_limit: str = Field("", serialization_alias="cpuSetLimit") copy_in: dict[str, CmdFile] = Field({}, serialization_alias="copyIn") copy_in_cached: dict[str, str] = Field({}, serialization_alias="copyInCached") - copy_in_dir: str = Field("", serialization_alias="copyInDir") + copy_in_dir: str = Field(".", serialization_alias="copyInDir") copy_out: list[str] = Field([], serialization_alias="copyOut") copy_out_cached: list[str] = Field([], serialization_alias="copyOutCached") copy_out_max: int = Field(0, serialization_alias="copyOutMax") diff --git a/tests/basic/task.json b/tests/basic/task.json index e7da0eb..294d15c 100644 --- a/tests/basic/task.json +++ b/tests/basic/task.json @@ -55,7 +55,7 @@ } }, "copyInCached": {}, - "copyInDir": "", + "copyInDir": ".", "copyOut": [], "copyOutCached": [ "output/ex5_results.txt", @@ -135,7 +135,7 @@ } }, "copyInCached": {}, - "copyInDir": "", + "copyInDir": ".", "copyOut": [], "copyOutCached": [ "output/ex5_results2.txt",