gecko-dev/testing/mozharness/tox.ini
Nikki Sharpley 4c76a56119 Bug 1554818 - [mozlog] Update StatusHandler to support known_intermittent field r=jgraham
This patch adds a `known_intermittent_statuses` attribute to the `StatusHandler`
class, allowing it to keep a count of expected intermittents for future use.
Additionally, known intermittents are not recorded as `unexpected_statuses` but
are recorded as `expected_statuses`.

testing/mozharness/mozharness/mozilla/structuredlog.py is directly affected by
this change and has been updated to also reflect `known_intermittent_statuses`.
However, it may require a test to be written to check this addition.

The `StatusHandler` test has been added to, ensuring this patch works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D33086

--HG--
extra : moz-landing-system : lando
2019-06-11 14:09:40 +00:00

32 lines
661 B
INI

[tox]
envlist = py27-hg4.3
[base]
deps =
coverage
nose
rednose
{toxinidir}/../mozbase/mozlog
mozbase = {toxinidir}/../mozbase/
[testenv]
basepython = python2.7
setenv =
HGRCPATH = {toxinidir}/test/hgrc
PYTHONPATH = $PYTHONPATH:{[base]mozbase}/manifestparser:{[base]mozbase}/mozfile:{[base]mozbase}/mozinfo:{[base]mozbase}/mozprocess
commands =
coverage run --source configs,mozharness,scripts --branch {envbindir}/nosetests -v --with-xunit --rednose --force-color {posargs}
[testenv:py27-hg4.3]
deps =
{[base]deps}
mercurial==4.3.1
[testenv:py27-coveralls]
deps=
python-coveralls==2.4.3
commands=
coveralls