This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-integration-cases.git


The following commit(s) were added to refs/heads/main by this push:
     new 1ab1bc43 copy all log files to test/logs (#62)
1ab1bc43 is described below

commit 1ab1bc43e3589aec7b4047b33e5f91012b334b5a
Author: stellar <[email protected]>
AuthorDate: Tue Apr 1 09:37:51 2025 +0800

    copy all log files to test/logs (#62)
---
 test/run-tests.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/run-tests.sh b/test/run-tests.sh
index 0b0733a7..e41f8b88 100755
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -232,6 +232,9 @@ function process_case() {
     result=$?
     end_time=$SECONDS
 
+    mkdir $TEST_DIR/logs/$scenario_name/
+    cp -f $project_home/target/logs/*.log $TEST_DIR/logs/$scenario_name/
+
     if [ $result == 0 ]; then
       echo "$log_prefix $TEST_SUCCESS with version: $version_profile, cost 
$((end_time - start_time)) s"
       mvn clean &> $project_home/mvn-clean.log
@@ -293,6 +296,8 @@ echo "Test reports dir: 
\${project.basedir}/target/test-reports"
 
 # prepare testcases
 mkdir -p $TEST_DIR/jobs
+mkdir -p $TEST_DIR/logs
+
 testListFile=$TEST_DIR/jobs/testjob.txt
 targetTestcases=$1
 if [ "$targetTestcases" != "" ];then

Reply via email to