Skip to content

Instantly share code, notes, and snippets.

@0atman
Created July 16, 2012 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0atman/3122826 to your computer and use it in GitHub Desktop.
Save 0atman/3122826 to your computer and use it in GitHub Desktop.
Run Django tests on change
while inotifywait -r -q -q -e close_write *;
do ./manage.py test -v0 --failfast;
done
@0atman
Copy link
Author

0atman commented Jul 16, 2012

@0atman
Copy link
Author

0atman commented Aug 30, 2012

Tweaked to be less verbose, both inotifywait and django tests.

@0atman
Copy link
Author

0atman commented Sep 4, 2012

Tweaked to be recursive, multi-line.

@0atman
Copy link
Author

0atman commented Nov 20, 2012

On Ubuntu, needs the package inotify-tools

@0atman
Copy link
Author

0atman commented Mar 20, 2013

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