adoroszlai commented on code in PR #11938:
URL: https://github.com/apache/ozone/pull/11938#discussion_r4506770258
##########
hadoop-ozone/dist/src/main/k8s/examples/testlib.sh:
##########
@@ -197,3 +203,14 @@ print_phase() {
echo "**** $1 ****"
echo ""
}
+
+create_robot_dir() {
+ if [[ -z "${ROBOT_OUTPUT_DIR:-}" ]]; then
+ export ROBOT_OUTPUT_DIR="$(mktemp -d "${TMPDIR:-/tmp}"/robot-data-XXXXXX)"
+ chmod go+rwx "${ROBOT_OUTPUT_DIR}"
+ _k8s_delete_test_data() {
+ rm -frv "${ROBOT_OUTPUT_DIR}"
+ }
+ trap _k8s_delete_test_data EXIT HUP INT TERM
Review Comment:
Thanks. I forgot that the script already has an exit trap.
--
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]