summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2018-10-04 11:18:26 +0100
committerStephen Finucane <sfinucan@redhat.com>2018-10-04 16:34:58 +0100
commited77ce858d1d6824519ed5f33b68c546de0f5ad1 (patch)
treedacd28f6bdf68cf96864b4b50e09e949c640d952 /tox.ini
parentf14a3b2b73c6c95edbea8de799cf1df07decdf0e (diff)
downloadpbr-ed77ce858d1d6824519ed5f33b68c546de0f5ad1.tar.gz
tox: Suppress output
Since the switch to stestr in commit 2222dbb47, the tests have taken to spewing a load of noise. This seems to be because we dropped the configuration for OS_STDOUT_CAPTURE and OS_STDERR_CAPTURE, which was previously configured in '.testr.conf'. This is fixed. However, it seems it's also necessary to explicitly pass the '--suppress-attachments' option to 'stestr' to properly silence things. This seems to be necessary because many pbr commands output to stdout by default, while other projects (nova, etc.) use 'logging'. Use of this option requires stestr 2.1.0 [1] so we bump the lower-constraint. As an aside, finding out what caused this output was easier said than done. I tried stestr, testr and fixtures, before finally finding it in subunit. [1] https://github.com/mtreinish/stestr/commit/1316ebd7 Change-Id: I1678bcd26b41fdf09f98c36fc095d6d4c1826deb Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 6 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index d97e6ff..4d460d8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,11 +5,15 @@ envlist = py{27,35,36},pep8,docs
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
-passenv = PBR_INTEGRATION PIPFLAGS PIPVERSION PBRVERSION REPODIR WHEELHOUSE PROJECTS OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE
+passenv = PBR_INTEGRATION PIPFLAGS PIPVERSION PBRVERSION REPODIR WHEELHOUSE PROJECTS
+setenv =
+ OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:1}
+ OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:1}
+ OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:60}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-commands = stestr run {posargs}
+commands = stestr run --suppress-attachments {posargs}
[testenv:pep8]
basepython = python3