[pytest-dev] xdist and data sharing during execution in parallel

2014-09-17 Thread Ayelet Regev
Hi, I'm creating a time-line based on pytest. im using xdist with multiple slaves (in the amount of the tests). Each test is started by time and dependency. which mean some of the gateways will be waiting for others to be "Done". for that, io need some data sharing between them all, and canno

Re: [pytest-dev] Question on item result

2014-09-17 Thread Ayelet Regev
thanks!!! your suggestion was very helpful. to use*item.rep_call.outcome* and not *report.outcome* def pytest_runtest_makereport(__multicall__, item, call): report = __multicall__.execute() setattr(item, "rep_" + report.when, report) if call.when == "teardown" : try:

Re: [pytest-dev] Question on item result

2014-09-17 Thread Ayelet Regev
i am using this hook... i have 1 test with 2 configurations provided using item._request.cfg then when im running the tests using xdist, i see that "slaveoutput["exitstatus"] is aware of the failure. but report.outcome climing both have "passed" def test_cm_delete(request): cfg = reque

Re: [pytest-dev] Question on item result

2014-09-17 Thread Holger Krekel
You might adapt this example: http://pytest.org/latest/example/simple.html#making-test-result-information-available-in-fixtures On September 17, 2014 3:18:05 PM CEST, Ayelet Regev wrote: >Hi, > >I want to be able to get the result from each item at teardown. >What should i look for? > >-- >Bes

[pytest-dev] Question on item result

2014-09-17 Thread Ayelet Regev
Hi, I want to be able to get the result from each item at teardown. What should i look for? -- Best Regards, Ayelet Regev Dabah Email: [email protected] ___ Pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo