summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYusuke Iwase <iwase.yusuke0@gmail.com>2015-09-17 16:28:48 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-18 08:31:44 +0900
commit033d99474a6dde0efbc6e1557fa876195e3b068c (patch)
tree118c955c334455ba31340c77bc271ac9bc946958
parent4ada0bbd9c5855ea1273a19a75082c4726554ea3 (diff)
.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>
-rw-r--r--.travis.yml2
-rwxr-xr-xryu/tests/run_tests.py2
-rw-r--r--tox.ini1
3 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index cc1d1093..263224d9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,6 @@ install:
- "pip install tox"
script:
- - tox -e $TOX_ENV
+ - NOSE_VERBOSE=0 tox -e $TOX_ENV
sudo: false
diff --git a/ryu/tests/run_tests.py b/ryu/tests/run_tests.py
index b3d18686..835e789b 100755
--- a/ryu/tests/run_tests.py
+++ b/ryu/tests/run_tests.py
@@ -25,7 +25,7 @@ if __name__ == '__main__':
cwd = os.getcwd()
c = config.Config(stream=sys.stdout,
env=os.environ,
- verbosity=3,
+ verbosity=int(os.environ.get('NOSE_VERBOSE', 3)),
includeExe=True,
traverseNamespace=True,
plugins=core.DefaultPluginManager())
diff --git a/tox.ini b/tox.ini
index a1a68273..0574beaf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,6 +6,7 @@ deps = -U
-r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
usedevelop = True
+passenv= NOSE_VERBOSE
commands =
python ryu/tests/run_tests.py '{posargs}'