From a6ebd398e20afacfa6458cc6074a1247a04e50cd Mon Sep 17 00:00:00 2001 From: Adnan <50206849+Adnan-cds@users.noreply.github.com> Date: Sat, 12 Dec 2020 10:53:22 +0000 Subject: [PATCH] Fix for shared-memory path for SQLite file Apparently, we missed a slash character from the path. @see https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php#L473 @see https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/tests/Drupal/Tests/Core/Database/Driver/sqlite/ConnectionTest.php#L44 --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index 55fa0f1..157d9ad 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -28,7 +28,7 @@ fi echo "Running tests" docker exec -t drupal bash -c "mkdir -p /var/www/html/web/sites/simpletest && chmod 777 /var/www/html/web/sites/simpletest" # Update PHPUnit's env var declarations; Paratest does not pass these to PHPUnit :( -docker exec -u docker -t drupal bash -c 'sed -i "s#http://localgov.lndo.site#http://drupal#; s#mysql://database:database@database/database#sqlite://localhost/dev/shm/test.sqlite#" /var/www/html/phpunit.xml.dist' +docker exec -u docker -t drupal bash -c 'sed -i "s#http://localgov.lndo.site#http://drupal#; s#mysql://database:database@database/database#sqlite://localhost//dev/shm/test.sqlite#" /var/www/html/phpunit.xml.dist' docker exec -u docker -t drupal bash -c "cd /var/www/html && ./bin/paratest --processes=4 --verbose=1" if [ $? -ne 0 ]; then ((RESULT++))