mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-06-08 07:53:56 +02:00
support casing
This commit is contained in:
@@ -22,7 +22,7 @@ class TestRunLoggingService(AbstractTestRunLoggingService):
|
||||
):
|
||||
self._lock = threading.Lock()
|
||||
timestamp = calendar.timegm(time.gmtime())
|
||||
self.log_file_path = f"./tests/logs/test_{test_id}/{str(model_id.value).replace("/", "_")}/{start}_{end}/test_{str(test_id).lower()}_logs_{timestamp}.json"
|
||||
self.log_file_path = str(f"./tests/logs/test_{test_id}/{str(model_id.value).replace("/", "_")}/{start}_{end}/test_{str(test_id).lower()}_logs_{timestamp}.json").lower()
|
||||
self._ensure_log_file_exists()
|
||||
|
||||
def _ensure_log_file_exists(self):
|
||||
|
||||
@@ -28,7 +28,7 @@ for i in {1..5}; do
|
||||
for model in "${models[@]}"; do
|
||||
# Replace / with _ and convert to lowercase for directory name
|
||||
dir_name="${model//\//_}"
|
||||
dir_name="${dir_name,,}" # Convert to lowercase
|
||||
dir_name="${dir_name}" # Convert to lowercase
|
||||
|
||||
# Create the full directory path
|
||||
full_path="logs/test_${i}/${dir_name}/${range}"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user