Created
July 16, 2012 13:49
-
-
Save 0atman/3122826 to your computer and use it in GitHub Desktop.
Run Django tests on change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while inotifywait -r -q -q -e close_write *; | |
do ./manage.py test -v0 --failfast; | |
done |
Tweaked to be less verbose, both inotifywait and django tests.
Tweaked to be recursive, multi-line.
On Ubuntu, needs the package inotify-tools
sudo sysctl fs.inotify.max_user_watches=100000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: http://stackoverflow.com/questions/9907756/inotify-dynamically-index-new-folders