This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new a20fb92a9 fix can not copy all test case logs (#1214)
a20fb92a9 is described below
commit a20fb92a95206d3f463640750a72d5e18bb998d3
Author: stellar <[email protected]>
AuthorDate: Thu May 8 09:49:15 2025 +0800
fix can not copy all test case logs (#1214)
---
test/run-tests.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/run-tests.sh b/test/run-tests.sh
index f50104162..b083f5478 100755
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -375,6 +375,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"
else
@@ -410,9 +413,6 @@ function process_case() {
log_prefix="[${case_no}/${totalCount}] [$scenario_name]"
echo "$log_prefix $TEST_SUCCESS: versions: $version_count, total cost
$((end_time - case_start_time)) s" | tee -a $testResultFile
-
- mkdir $TEST_DIR/logs/$scenario_name/
- cp -f $project_home/target/logs/*.log $TEST_DIR/logs/$scenario_name/
# clean log files
rm -f $project_home/*.log $project_home/version-matrix.*
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]