95321218c1
rpmlint requires it as follows. > ryu.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/ryu/tests/run_tests.py 0644L /usr/bin/env > ryu.noarch: E: non-executable-script /usr/lib/python2.7/site-packages/ryu/tests/test_lib.py 0644L /usr/bin/env > This text file contains a shebang or is located in a path dedicated for > executables, but lacks the executable bits and cannot thus be executed. If > the file is meant to be an executable script, add the executable bits, > otherwise remove the shebang or move the file elsewhere. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
36 lines
792 B
Python
Executable File
36 lines
792 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 ryu.tests.unit
|
|
from ryu.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=3,
|
|
includeExe=True,
|
|
traverseNamespace=True,
|
|
plugins=core.DefaultPluginManager())
|
|
c.configureWhere(ryu.tests.unit.__path__)
|
|
|
|
exit_status = run_tests(c)
|
|
sys.exit(exit_status)
|