fab: Make 'test' and 'autotest' able to run a subset of the tests
This commit is contained in:
parent
5d707e3918
commit
c81d1d77bf
9
fabfile.py
vendored
9
fabfile.py
vendored
@ -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/')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user