This commit is contained in:
ialbert 2024-12-02 14:59:46 +03:00
parent 71677e1d97
commit 2d152ce12f

View file

@ -19,7 +19,11 @@ sh ./clearing_testing_utils/clearing-tester/clearing-tester.sh
if [ -n "$CLR_TEST_NAME" ] && [ -d "./bin/log" ]; then
echo "Copying logs to ./bin/log/${CLR_TEST_NAME}"
mkdir -p "./bin/log/${CLR_TEST_NAME}"
rsync -av --exclude="${CLR_TEST_NAME}" "./bin/log/" "./bin/log/${CLR_TEST_NAME}/"
# Copy all contents from ./bin/log to tmp dir
mkdir -p "./bin/log_artifact"
cp -a ./bin/log/. "./bin/log_artifact/"
# Move the copied logs into the desired location
mv "./bin/log_artifact" "./bin/log/${CLR_TEST_NAME}"
else
echo "CLR_TEST_NAME is not set or ./bin/log does not exist. Skipping log copy."
fi