[ticket/15214] Fix Windows tests

PHPBB3-15214
This commit is contained in:
rxu 2023-12-10 23:24:11 +07:00
parent cb5b9823f9
commit 0a31489ed2
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17
4 changed files with 4 additions and 16 deletions

View file

@ -545,10 +545,9 @@ jobs:
New-WebHandler -Name "PHP-FastCGI" -Path "*.php" -Modules FastCgiModule -ScriptProcessor "C:\tools\php\php-cgi.exe" -Verb '*' -ResourceType Either
iisreset
NET START W3SVC
icacls "${env:GITHUB_WORKSPACE}\phpBB\cache" /grant "Users:(OI)(CI)F" /T
mkdir "${env:GITHUB_WORKSPACE}\phpBB\cache\test"
mkdir "${env:GITHUB_WORKSPACE}\phpBB\cache\test\twig"
mkdir "${env:GITHUB_WORKSPACE}\phpBB\cache\installer"
icacls "${env:GITHUB_WORKSPACE}\phpBB\cache" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\files" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\store" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\ext" /grant Users:F /T

View file

@ -39,13 +39,6 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t
self::$helper->restore_original_ext_dir();
}
protected function tearDown(): void
{
$this->purge_cache();
parent::tearDown();
}
protected function setUp(): void
{
parent::setUp();

View file

@ -39,13 +39,6 @@ class phpbb_functional_extension_template_event_order_test extends phpbb_functio
self::$helper->restore_original_ext_dir();
}
protected function tearDown(): void
{
$this->purge_cache();
parent::tearDown();
}
protected function setUp(): void
{
parent::setUp();

View file

@ -146,6 +146,9 @@ class phpbb_functional_test_case extends phpbb_test_case
// Close the database connections again this test
$this->db->sql_close();
}
$this->purge_cache();
sleep(3); // Give it some time to delete all the files correctly
}
/**