Use attribute for ignoring Laravel test

Apparently `@group` stopped working.
This commit is contained in:
Ilija Tovilo 2023-10-31 11:48:08 +01:00
parent 455a967934
commit 0e8205bd9a
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -341,7 +341,7 @@ jobs:
git rev-parse HEAD git rev-parse HEAD
php /usr/bin/composer install --no-progress --ignore-platform-reqs php /usr/bin/composer install --no-progress --ignore-platform-reqs
# Hack to disable a test that hangs # Hack to disable a test that hangs
php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "/** @group skip */\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);' php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);'
export ASAN_OPTIONS=exitcode=139 export ASAN_OPTIONS=exitcode=139
php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$? php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$?
if [ $EXIT_CODE -gt 128 ]; then if [ $EXIT_CODE -gt 128 ]; then