From e8ae2f9090671d3acb52c4bc5d27497f020a5d97 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 18 Nov 2011 16:03:02 +0000 Subject: [PATCH] small fixes to test suite --- CHANGELOG | 3 ++- testing/test_remote.py | 2 +- xdist/plugin.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index fba6a3d..b1ae839 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,8 @@ 1.7 ------------------------- -- fix incompatibilities with pytest-2.2.0 +- fix incompatibilities with pytest-2.2.0 (allow multiple + pytest_runtest_logreport reports for a test item) 1.6 ------------------------- diff --git a/testing/test_remote.py b/testing/test_remote.py index 7a211cc..7c72e73 100644 --- a/testing/test_remote.py +++ b/testing/test_remote.py @@ -195,13 +195,13 @@ class TestSlaveInteractor: ids = ev.kwargs['ids'] assert len(ids) == 2 slave.sendcommand("runtests_all", ) + slave.sendcommand("shutdown", ) for func in "::test_func", "::test_func2": for i in range(3): # setup/call/teardown ev = slave.popevent("testreport") assert ev.name == "testreport" rep = unserialize_report(ev.name, ev.kwargs['data']) assert rep.nodeid.endswith(func) - slave.sendcommand("shutdown") ev = slave.popevent("slavefinished") assert 'slaveoutput' in ev.kwargs diff --git a/xdist/plugin.py b/xdist/plugin.py index 73547a9..5f1dccb 100644 --- a/xdist/plugin.py +++ b/xdist/plugin.py @@ -97,6 +97,7 @@ def forked_run_report(item): from xdist.slavemanage import unserialize_report def runforked(): try: + item.nextitem = None reports = runtestprotocol(item, log=False) except KeyboardInterrupt: py.std.os._exit(EXITSTATUS_TESTEXIT)