• Stephen Finucane's avatar
    tox: Suppress output · ed77ce85
    Stephen Finucane authored
    Since the switch to stestr in commit 2222dbb4, 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: 's avatarStephen Finucane <sfinucan@redhat.com>
    ed77ce85