.travis.yml: Suppress the output of unit tests
Because Travis-CI has a limit of the log file to 4MB, this patch suppress the output of unit tests by setting NOSE_VERBOSE in tox.ini. tox.ini does not effect when running run_tests.sh locally, so please run run_tests.sh, if the full log messages are needed. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
4ada0bbd9c
commit
033d99474a
@ -12,6 +12,6 @@ install:
|
|||||||
- "pip install tox"
|
- "pip install tox"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- NOSE_VERBOSE=0 tox -e $TOX_ENV
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
@ -25,7 +25,7 @@ if __name__ == '__main__':
|
|||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
c = config.Config(stream=sys.stdout,
|
c = config.Config(stream=sys.stdout,
|
||||||
env=os.environ,
|
env=os.environ,
|
||||||
verbosity=3,
|
verbosity=int(os.environ.get('NOSE_VERBOSE', 3)),
|
||||||
includeExe=True,
|
includeExe=True,
|
||||||
traverseNamespace=True,
|
traverseNamespace=True,
|
||||||
plugins=core.DefaultPluginManager())
|
plugins=core.DefaultPluginManager())
|
||||||
|
1
tox.ini
1
tox.ini
@ -6,6 +6,7 @@ deps = -U
|
|||||||
-r{toxinidir}/tools/pip-requires
|
-r{toxinidir}/tools/pip-requires
|
||||||
-r{toxinidir}/tools/test-requires
|
-r{toxinidir}/tools/test-requires
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
passenv= NOSE_VERBOSE
|
||||||
commands =
|
commands =
|
||||||
python ryu/tests/run_tests.py '{posargs}'
|
python ryu/tests/run_tests.py '{posargs}'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user