From 42a3b2d34c8551b308d08e4b99ee8196c99520dc Mon Sep 17 00:00:00 2001
From: Nuvole <jon-lee@sjtu.edu.cn>
Date: Thu, 7 Nov 2024 23:40:04 +0800
Subject: [PATCH] fix: path to test

---
 joj3_config_generator/main.py | 6 +++---
 tests/convert/basic/task.json | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/joj3_config_generator/main.py b/joj3_config_generator/main.py
index 39e2d7e..3d7e63e 100644
--- a/joj3_config_generator/main.py
+++ b/joj3_config_generator/main.py
@@ -52,10 +52,10 @@ def convert(root: Path = Path(".")) -> result.Config:
     Convert given dir of JOJ3 toml config files to JOJ3 json config files
     """
     logger.info(f"Converting files in {root.absolute()}")
-    repo_toml_path = os.path.join(root, "basic", "repo.toml")
+    repo_toml_path = os.path.join(root.absolute(), "basic", "repo.toml")
     # TODO: loop through all dirs to find all task.toml
-    task_toml_path = os.path.join(root, "basic", "task.toml")
-    result_json_path = os.path.join(root, "basic", "task.json")
+    task_toml_path = os.path.join(root.absolute(), "basic", "task.toml")
+    result_json_path = os.path.join(root.absolute(), "basic", "task.json")
     with open(repo_toml_path) as repo_file:
         repo_toml = repo_file.read()
     with open(task_toml_path) as task_file:
diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json
index fe289a5..4c406f2 100644
--- a/tests/convert/basic/task.json
+++ b/tests/convert/basic/task.json
@@ -18,7 +18,7 @@
                                 "/<function",
                                 "get_temp_directory",
                                 "at",
-                                "0x7f46eeff8180>/repo-health-checker",
+                                "0x7f8686b98180>/repo-health-checker",
                                 "-root=.",
                                 "-repoSize=50.5",
                                 "-meta=main.py",
@@ -70,8 +70,8 @@
                             "cpuRateLimit": 0,
                             "cpuSetLimit": "",
                             "copyIn": {
-                                "//tmp/repo-checker-l7uddq8e/repo-health-checker": {
-                                    "src": "//tmp/repo-checker-s5wx4xg3/repo-health-checker",
+                                "//tmp/repo-checker-9jj98lrm/repo-health-checker": {
+                                    "src": "//tmp/repo-checker-er4az3r2/repo-health-checker",
                                     "content": null,
                                     "fileId": null,
                                     "name": null,