diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-04 14:06:42 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-04 14:06:42 +0200 |
commit | aebc330f269f3e88f2891cd13009cde2d50eb59a (patch) | |
tree | 7398bc68d581d01b18ba3e9e79c82491f1ecf871 /autotest.sh | |
parent | c62dc4fa80d622ed7651029e9ddff2a6c6327143 (diff) | |
parent | 800bf0769ff4ea63c5dcc77eaaf1bce669b73d13 (diff) | |
download | nextcloud-server-aebc330f269f3e88f2891cd13009cde2d50eb59a.tar.gz nextcloud-server-aebc330f269f3e88f2891cd13009cde2d50eb59a.zip |
Merge branch 'master' into fixing-4011-master
Diffstat (limited to 'autotest.sh')
-rwxr-xr-x | autotest.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/autotest.sh b/autotest.sh index 83f184fa9c0..3831e181245 100755 --- a/autotest.sh +++ b/autotest.sh @@ -12,6 +12,16 @@ DATABASEUSER=oc_autotest$EXECUTOR_NUMBER ADMINLOGIN=admin$EXECUTOR_NUMBER BASEDIR=$PWD +if ! [ -w config -a -w config/config.php ]; then + echo "Please enable write permissions on config and config/config.php" >&2 + exit 1 +fi + +# Back up existing (dev) config if one exists +if [ -f config/config.php ]; then + mv config/config.php config/config-autotest-backup.php +fi + # use tmpfs for datadir - should speedup unit test execution if [ -d /dev/shm ]; then DATADIR=/dev/shm/data-autotest$EXECUTOR_NUMBER @@ -158,6 +168,13 @@ else execute_tests $1 $2 $3 fi +cd $BASEDIR + +# Restore existing config +if [ -f config/config-autotest-backup.php ]; then + mv config/config-autotest-backup.php config/config.php +fi + # # NOTES on mysql: # - CREATE DATABASE oc_autotest; |