Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-02 14:41:33 +0300
committerJoas Schilling <nickvergessen@gmx.de>2014-12-02 14:41:33 +0300
commit9da4a6323dbfc7f67be56a8c0f30a9a39645553d (patch)
tree7dfe393ecdc2e7b21c575c1625a456755ad6a1a7 /autotest.cmd
parenta0fea16d56682976b64a1c96e583542e12e1763e (diff)
Restore the development config after running the tests
Diffstat (limited to 'autotest.cmd')
-rw-r--r--autotest.cmd20
1 files changed, 17 insertions, 3 deletions
diff --git a/autotest.cmd b/autotest.cmd
index 0bff45ef379..2129e2d30d6 100644
--- a/autotest.cmd
+++ b/autotest.cmd
@@ -67,11 +67,18 @@ echo ^)^; >> .\tests\autoconfig-mssql.php
echo localhost:5432:*:oc_autotest:owncloud > %APPDATA%\postgresql\pgpass.conf
+@echo on
+
+:: Back up existing (dev) config if one exists
+if exist config\config.php (
+ copy /y config\config.php config\config-autotest-backup.php
+)
+
::
:: start test execution
::
if [%1] == [] (
- echo "Running on all database backends"
+ @echo "Running on all database backends"
call:execute_tests "sqlite" "%2"
call:execute_tests "mysql" "%2"
call:execute_tests "mssql" "%2"
@@ -81,11 +88,18 @@ if [%1] == [] (
call:execute_tests "%1" "%2"
)
+goto:restore_config
+
goto:eof
-:execute_tests
- @echo on
+:restore_config
+ :: Restore existing config
+ if exist config\config-autotest-backup.php (
+ copy /y config\config-autotest-backup.php config\config.php
+ )
+goto:eof
+:execute_tests
@echo "Setup environment for %~1 testing ..."
:: back to root folder
cd %BASEDIR%