Skip to content

Commit c192dba

Browse files
committed
test: use mktemp for the temporary directory
Signed-off-by: Yann Dirson <[email protected]>
1 parent 7f3c4e4 commit c192dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ REPOS=xcp-emu-manager
1111
CONTAINER_NAME=${CONTAINER_NAME:-build-env}
1212

1313
for REPO in ${REPOS}; do
14-
REPO_PATH=/tmp/"$REPO"
14+
REPO_PATH=$(mktemp --directory --tmpdir xcp-buildenv-test.XXXXXX)
1515
trap "rm -rf '$REPO_PATH'" EXIT
1616
git clone --branch "$TARGET_XCP_NG_VERSION" https://github.com/xcp-ng-rpms/"$REPO" "$REPO_PATH"
1717

0 commit comments

Comments
 (0)