Merge pull request #11285 from nextcloud/stable12-11268-include-empty-directories-in-the-default-state-of-acceptance-tests

[stable12] Include empty directories in the default state of acceptance tests
This commit is contained in:
Roeland Jago Douma 2018-09-25 16:05:17 +02:00 committed by GitHub
commit 4a14e987b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ tests/acceptance/installAndConfigureServer.sh $INSTALL_AND_CONFIGURE_SERVER_PARA
echo "Saving the default state so acceptance tests can reset to it" echo "Saving the default state so acceptance tests can reset to it"
find . -name ".gitignore" -exec rm --force {} \; find . -name ".gitignore" -exec rm --force {} \;
# Create dummy files in empty directories to force Git to save the directories.
find . -not -path "*.git*" -type d -empty -exec touch {}/.keep \;
git add --all && echo 'Default state' | git -c user.name='John Doe' -c user.email='john@doe.org' commit --quiet --file=- git add --all && echo 'Default state' | git -c user.name='John Doe' -c user.email='john@doe.org' commit --quiet --file=-
cd tests/acceptance cd tests/acceptance