mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-04-09 03:52:02 +00:00
Added "ResetMail.sh" to handle refreshing the test inboxes before and between tests
This commit is contained in:
parent
2a1c46e48d
commit
63a358bcfa
1 changed files with 11 additions and 0 deletions
11
tests/vagrant/ResetMail.sh
Normal file
11
tests/vagrant/ResetMail.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'Refreshing the test mailbox- this could take a minute.'
|
||||
|
||||
sudo stop dovecot
|
||||
[ -d "/home/testuser/Maildir" ] && sudo rm -R /home/testuser/Maildir
|
||||
sudo cp -Rp /resources/Maildir /home/testuser/
|
||||
sudo chown -R testuser:testuser /home/testuser/Maildir
|
||||
sudo start dovecot
|
||||
|
||||
echo 'Test mailbox restored'.
|
Loading…
Add table
Reference in a new issue