Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c81d1d77bff2cb660d59c8d937b54307c8f49146 1 parent 5d707e3
Stein Magnus Jodal jodal authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 fabfile.py
9 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/')
Please sign in to comment.
Something went wrong with that request. Please try again.