From 5ed555fb5d561f261af32e4ade6bd50566a9f984 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Wed, 24 Apr 2024 13:43:02 +0000 Subject: [PATCH] Revert "Remove _tmp from test/images/image-util.sh" This reverts commit 2e465cd6fa06165dfb50c0f1c39254203721dae7. --- test/images/image-util.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/images/image-util.sh b/test/images/image-util.sh index baeddbf6324..12c2d3e5933 100755 --- a/test/images/image-util.sh +++ b/test/images/image-util.sh @@ -127,7 +127,8 @@ build() { # Create a temporary directory for every architecture and copy the image content # and build the image from temporary directory - temp_dir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")" + mkdir -p "${KUBE_ROOT}"/_tmp + temp_dir=$(mktemp -d "${KUBE_ROOT}"/_tmp/test-images-build.XXXXXX) kube::util::trap_add "rm -rf ${temp_dir}" EXIT cp -r "${img_folder}"/* "${temp_dir}"