adoroszlai commented on code in PR #8553:
URL: https://github.com/apache/ozone/pull/8553#discussion_r2123375401


##########
hadoop-ozone/dev-support/checks/junit.sh:
##########
@@ -68,8 +68,13 @@ for i in $(seq 1 ${ITERATIONS}); do
     mkdir -p "${REPORT_DIR}"
   fi
 
-  mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
verify \
-    | tee "${REPORT_DIR}/output.log"
+  if [[ $i -eq 1 ]]; then
+    mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
verify \
+      | tee "${REPORT_DIR}/output.log"
+  else
+    mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
clean verify \
+      | tee "${REPORT_DIR}/output.log"
+  fi

Review Comment:
   I think this should be done unconditionally.
   
   - Project may be already built if `OZONE_REPO_CACHED == false`, in that case 
even first iteration can run into the error.
   - If project is not yet built, clean does not make much difference.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to