9f1f1726d0
After forking from Ryu, the namespace needs to change from 'ryu' to 'os_ken' so that it won't collide with the namespace of the old library. Change-Id: I807a8785e525cc02825d15a1a01eec3d5d20cce4
36 lines
838 B
Python
Executable File
36 lines
838 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
|
|
import os
|
|
import sys
|
|
|
|
from nose import config
|
|
from nose import core
|
|
|
|
sys.path.append(os.getcwd())
|
|
sys.path.append(os.path.dirname(__file__))
|
|
|
|
|
|
import os_ken.tests.unit
|
|
from os_ken.tests.test_lib import run_tests
|
|
|
|
|
|
if __name__ == '__main__':
|
|
exit_status = False
|
|
|
|
# if a single test case was specified,
|
|
# we should only invoked the tests once
|
|
invoke_once = len(sys.argv) > 1
|
|
|
|
cwd = os.getcwd()
|
|
c = config.Config(stream=sys.stdout,
|
|
env=os.environ,
|
|
verbosity=int(os.environ.get('NOSE_VERBOSE', 3)),
|
|
includeExe=True,
|
|
traverseNamespace=True,
|
|
plugins=core.DefaultPluginManager())
|
|
c.configureWhere(os_ken.tests.unit.__path__)
|
|
|
|
exit_status = run_tests(c)
|
|
sys.exit(exit_status)
|