We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ad28a commit 9f757c8Copy full SHA for 9f757c8
1 file changed
tests.sh
@@ -126,6 +126,18 @@ run_test() {
126
127
log_info "第 $iteration 次运行 $test_name 测试..."
128
129
+ # 先执行clean
130
+ log_info "执行clean操作..."
131
+ local clean_output=$(./gradlew clean 2>&1)
132
+ local clean_exit_code=$?
133
+
134
+ if [ $clean_exit_code -ne 0 ]; then
135
+ log_error "Clean操作失败"
136
+ echo "Clean错误输出:" >> "$LOG_FILE"
137
+ echo "$clean_output" >> "$LOG_FILE"
138
+ return 1
139
+ fi
140
141
local start_time=$(date +%s)
142
local test_output
143
0 commit comments