From c3738a31066f29a45193f75c3ba7c7644fec6445 Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Tue, 17 Mar 2026 19:26:41 +0000 Subject: [PATCH] fix: remove stale /tmp/wordpress-develop before git clone (#82) Prevents git clone failure on re-runs when the destination directory already exists from a previous test suite installation. Closes #74 --- bin/install-wp-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 462a59f..958b08c 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -117,6 +117,7 @@ install_test_suite() { # set up testing suite if it doesn't yet exist if [ ! -d "$WP_TESTS_DIR" ]; then mkdir -p "$WP_TESTS_DIR" + rm -rf /tmp/wordpress-develop if ! git clone --quiet --depth=1 --branch "$GIT_REF" https://github.com/WordPress/wordpress-develop.git /tmp/wordpress-develop; then echo "Error: Failed to clone wordpress-develop at branch/tag $GIT_REF" >&2 exit 1