Permalink
Browse files

fab: Make 'test' and 'autotest' able to run a subset of the tests

  • Loading branch information...
1 parent 5d707e3 commit c81d1d77bff2cb660d59c8d937b54307c8f49146 @jodal jodal committed Dec 23, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 fabfile.py
View
@@ -1,14 +1,15 @@
from fabric.api import local
-def test():
- local('nosetests tests/')
+def test(path=None):
+ path = path or 'tests/'
+ local('nosetests ' + path)
-def autotest():
+def autotest(path=None):
while True:
local('clear')
- test()
+ test(path)
local(
'inotifywait -q -e create -e modify -e delete '
'--exclude ".*\.(pyc|sw.)" -r mopidy/ tests/')

0 comments on commit c81d1d7

Please sign in to comment.