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:
authorMorris Jobke <hey@morrisjobke.de>2019-03-05 13:39:59 +0300
committerMorris Jobke <hey@morrisjobke.de>2019-03-05 15:53:03 +0300
commitcacb6279c4b9c2752809b6610a0529d7027d6ee8 (patch)
tree793efa7d27dc94b717d63a00d953f959021081cd /autotest-checkers.sh
parentc91ae1133e727156a63a8fe1bdc3ad0f05f4851a (diff)
Reduce errors in checker tests by creating the data dir
* only created if it doesn't exist yet Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'autotest-checkers.sh')
-rwxr-xr-xautotest-checkers.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autotest-checkers.sh b/autotest-checkers.sh
index 0bdd69510c6..0c9966f5588 100755
--- a/autotest-checkers.sh
+++ b/autotest-checkers.sh
@@ -9,7 +9,12 @@ RESULT=$(($RESULT+$?))
php ./build/htaccess-checker.php
RESULT=$(($RESULT+$?))
-
+dataDirCreated=0
+if ! [ -e data/ ]; then
+ dataDirCreated=1
+ echo "Create directory 'data/'"
+ mkdir data/
+fi
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
echo "Testing $app"
if
@@ -34,6 +39,10 @@ for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;);
fi
RESULT=$(($RESULT+$?))
done;
+if [ $dataDirCreated == 1 ]; then
+ echo "Delete created directory 'data/'"
+ rm -rf data/
+fi
php ./build/files-checker.php
RESULT=$(($RESULT+$?))