From 7827f4c509dec276f4aa0edd8550e60b46c0f5d6 Mon Sep 17 00:00:00 2001 From: Ivan Nikolaev-Axenov Date: Fri, 21 Mar 2025 11:20:18 +0300 Subject: [PATCH] fix v6 --- clr_test/clearing-all/launch_and_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clr_test/clearing-all/launch_and_test.sh b/clr_test/clearing-all/launch_and_test.sh index b1274c269..0eeb36e92 100644 --- a/clr_test/clearing-all/launch_and_test.sh +++ b/clr_test/clearing-all/launch_and_test.sh @@ -110,8 +110,14 @@ then echo "./files/xml/importer/out or ./files/xml/importer/error or ./files/xml/exporter does not exists, skipping folder log copy" fi + if [ -d "./bin/log_artifacts/${CLR_TEST_NAME}" ] + then + rm -rf "./bin/log_artifacts/${CLR_TEST_NAME}/*" + else + mkdir -p "./bin/log_artifacts/${CLR_TEST_NAME}" + fi + # Move the copied logs into the artifact location - mkdir -p "./bin/log_artifacts/${CLR_TEST_NAME}" || rm -rf "./bin/log_artifacts/${CLR_TEST_NAME}/*" mv ./bin/tmp_log_artifact/* "./bin/log_artifacts/${CLR_TEST_NAME}" else echo "CLR_TEST_NAME is not set. Skipping log copy."