Skip to content

cleanup.php is stuck waiting for user interaction #301

@marlonanjos

Description

@marlonanjos

Describe the bug
cleanup.php is waiting for user confirmation to delete write-protected files

To Reproduce
Run cleanup.php after running the tests

Expected behavior
The cleanup should delete all files without confirmation

Screenshots

Running cleanup.php...
+ /usr/bin/php8.2 /var/www/wp-phpunit-tests/phpunit-test-runner/cleanup.php
Environment variables pass checks.
rm -rf '/var/www/wp-phpunit-tests/wp-test-runner/.git'
rm -rf '/var/www/wp-phpunit-tests/wp-test-runner/node_modules/.cache'
rm -r '/var/www/wp-phpunit-tests/wp-test-runner'
rm: remove write-protected regular file '/var/www/wp-phpunit-tests/wp-test-runner/gutenberg/.git/objects/33/3a0b46874f4a1a78db7794a9dfc7786ce54e70'?

Additional context
Temporary solution is to remove the .git directory (rm -rf /var/www/wp-phpunit-tests/wp-test-runner/gutenberg/.git/) before cleanup.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions