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

This commit is contained in:
Stein Magnus Jodal 2012-12-23 16:30:59 +01:00
parent 5d707e3918
commit c81d1d77bf

9
fabfile.py vendored
View File

@ -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/')