diff --git a/schema/bin/prepare-test-db b/schema/bin/prepare-test-db index cbd00e7b0c8..7ee97c863d8 100755 --- a/schema/bin/prepare-test-db +++ b/schema/bin/prepare-test-db @@ -6,7 +6,8 @@ pushd /opt/irontec/ivozprovider/schema # Prepare dataset bin/console core:prepare:database -e test # Load fixtures - DISABLE_FK=1 bin/console doctrine:fixtures:load -e test --no-interaction -v + export DISBALE_FK=1 + bin/console doctrine:fixtures:load -e test --no-interaction -v # Create initial dataset file mv var/cache/test/db.sqlite var/cache/test/db.sqlite.back diff --git a/tests/docker/bin/prepare-fixtures b/tests/docker/bin/prepare-fixtures index d3b88c389bb..f225c712a93 100755 --- a/tests/docker/bin/prepare-fixtures +++ b/tests/docker/bin/prepare-fixtures @@ -4,6 +4,7 @@ mkdir -m 777 -p /opt/irontec/ivozprovider/storage/ # Prepare tests databases +cat /opt/irontec/ivozprovider/schema/bin/prepare-test-db /opt/irontec/ivozprovider/schema/bin/prepare-test-db mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/platform/var/cache/test @@ -16,4 +17,4 @@ mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/client/var/cache/test cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/client/var/cache/test/db.sqlite.back mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/user/var/cache/test -cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/user/var/cache/test/db.sqlite.back \ No newline at end of file +cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/user/var/cache/test/db.sqlite.back