mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #11283 from nextcloud/stable14-11268-include-empty-directories-in-the-default-state-of-acceptance-tests
[stable14] Include empty directories in the default state of acceptance tests
This commit is contained in:
commit
bea36f9992
1 changed files with 2 additions and 0 deletions
|
|
@ -206,6 +206,8 @@ su --shell /bin/bash --login www-data --command "cd $NEXTCLOUD_DIR && $ACCEPTANC
|
|||
|
||||
echo "Saving the default state so acceptance tests can reset to it"
|
||||
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=-
|
||||
|
||||
cd tests/acceptance
|
||||
|
|
|
|||
Loading…
Reference in a new issue