From ae592a3825bdd0c812c5dac6b264730f638188b0 Mon Sep 17 00:00:00 2001 From: Nuvole Date: Mon, 26 May 2025 10:19:26 +0800 Subject: [PATCH] fix: log path (#17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix log path for `joj-mon` Reviewed-on: https://focs.ji.sjtu.edu.cn/git/JOJ/JOJ3-config-generator/pulls/17 Reviewed-by: 张泊明518370910136 Co-authored-by: Nuvole Co-committed-by: Nuvole --- joj3_config_generator/models/const.py | 2 +- tests/convert/basic/task.json | 2 +- tests/convert/clang-tidy/task.json | 2 +- tests/convert/cppcheck/task.json | 2 +- tests/convert/cpplint/task.json | 2 +- tests/convert/diff/task.json | 2 +- tests/convert/keyword/task.json | 2 +- tests/convert/result-detail/task.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/joj3_config_generator/models/const.py b/joj3_config_generator/models/const.py index 491371f..b660c30 100644 --- a/joj3_config_generator/models/const.py +++ b/joj3_config_generator/models/const.py @@ -12,6 +12,6 @@ DEFAULT_PROC_LIMIT = 50 JOJ3_CONFIG_ROOT = Path("/home/tt/.config/joj") TEAPOT_CONFIG_ROOT = Path("/home/tt/.config/teapot") CACHE_ROOT = Path("/home/tt/.cache") -JOJ3_LOG_PATH = CACHE_ROOT / "joj3.log" +JOJ3_LOG_PATH = CACHE_ROOT / "joj3" / "joj3.log" TEAPOT_LOG_PATH = CACHE_ROOT / "joint-teapot-debug.log" ACTOR_CSV_PATH = JOJ3_CONFIG_ROOT / "students.csv" diff --git a/tests/convert/basic/task.json b/tests/convert/basic/task.json index 82e35e4..0ebb5d9 100644 --- a/tests/convert/basic/task.json +++ b/tests/convert/basic/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/clang-tidy/task.json b/tests/convert/clang-tidy/task.json index e6c07d2..0e90e5c 100644 --- a/tests/convert/clang-tidy/task.json +++ b/tests/convert/clang-tidy/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/cppcheck/task.json b/tests/convert/cppcheck/task.json index 79e3945..80199a7 100644 --- a/tests/convert/cppcheck/task.json +++ b/tests/convert/cppcheck/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/cpplint/task.json b/tests/convert/cpplint/task.json index 14073d3..049bb99 100644 --- a/tests/convert/cpplint/task.json +++ b/tests/convert/cpplint/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/diff/task.json b/tests/convert/diff/task.json index 3b902b5..8720c67 100644 --- a/tests/convert/diff/task.json +++ b/tests/convert/diff/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/keyword/task.json b/tests/convert/keyword/task.json index 73b3113..a28d7d1 100644 --- a/tests/convert/keyword/task.json +++ b/tests/convert/keyword/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv", diff --git a/tests/convert/result-detail/task.json b/tests/convert/result-detail/task.json index 133c1b5..c57390b 100644 --- a/tests/convert/result-detail/task.json +++ b/tests/convert/result-detail/task.json @@ -1,6 +1,6 @@ { "name": "hw7 ex2", - "logPath": "/home/tt/.cache/joj3.log", + "logPath": "/home/tt/.cache/joj3/joj3.log", "expireUnixTimestamp": 1735574399, "effectiveUnixTimestamp": 1735487999, "actorCsvPath": "/home/tt/.config/joj/students.csv",