From b69401cdc9774ad1bbf26654126b2116615f6f4b Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Tue, 19 Nov 2024 21:16:03 +0100 Subject: [PATCH] HDDS-11755. mktemp --suffix does not work on Mac --- hadoop-ozone/dist/src/main/compose/testlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh b/hadoop-ozone/dist/src/main/compose/testlib.sh index 54205001f7d3..9c4c05cc1294 100755 --- a/hadoop-ozone/dist/src/main/compose/testlib.sh +++ b/hadoop-ozone/dist/src/main/compose/testlib.sh @@ -398,7 +398,7 @@ run_rebot() { shift 2 - local tempdir="$(mktemp -d --suffix rebot -p "${output_dir}")" + local tempdir="$(mktemp -d "${output_dir}"/rebot-XXXXXX)" #Should be writeable from the docker containers where user is different. chmod a+wx "${tempdir}" if docker run --rm -v "${input_dir}":/rebot-input -v "${tempdir}":/rebot-output -w /rebot-input \