Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce errors in checker tests by creating the data dir
* only created if it doesn't exist yet

Signed-off-by: Morris Jobke <[email protected]>
  • Loading branch information
MorrisJobke committed Mar 5, 2019
commit cacb6279c4b9c2752809b6610a0529d7027d6ee8
11 changes: 10 additions & 1 deletion autotest-checkers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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+$?))
Expand Down