backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / run_tests.py
1 #!/usr/bin/env python
2
3
4 import os
5 import sys
6
7 from nose import config
8 from nose import core
9
10 sys.path.append(os.getcwd())
11 sys.path.append(os.path.dirname(__file__))
12
13
14 import ryu.tests.unit
15 from ryu.tests.test_lib import run_tests
16
17
18 if __name__ == '__main__':
19     exit_status = False
20
21     # if a single test case was specified,
22     # we should only invoked the tests once
23     invoke_once = len(sys.argv) > 1
24
25     cwd = os.getcwd()
26     c = config.Config(stream=sys.stdout,
27                       env=os.environ,
28                       verbosity=int(os.environ.get('NOSE_VERBOSE', 3)),
29                       includeExe=True,
30                       traverseNamespace=True,
31                       plugins=core.DefaultPluginManager())
32     c.configureWhere(ryu.tests.unit.__path__)
33
34     exit_status = run_tests(c)
35     sys.exit(exit_status)