Commit graph

11 commits

Author SHA1 Message Date
pentarctagon
900a159c8b Attempt to fix suspected race condition when running MP tests.
Currently the MP unit tests will randomly fail due to one of the two background wesnoth instances failing video initialization.  All unit tests require the display server to be initialized however, or they fail with the same error as the MP tests sometimes fail with.  However, the MP tests are the only tests to randomly fail due to video initialization, while for the same travis job the WML unit tests (which run before) and the boost unit tests (which run after) are still able to be successfully completed.

Therefore, the video initialization failures are not entirely random, and the MP tests are also the only tests that experience this failure while also being the only tests that have more than one instance of wesnoth running simultaneously.

tl;dr: the attempted solution here is to sleep for 5 seconds between starting background processes in the mp unit test script.

Also removes starting the display server prior outside of the docker container, since that's not needed anymore.
2018-03-05 15:49:46 +11:00
Jyrki Vesterinen
72739c56a5 Revert ignoring MP test failures due to video init failure (2e5c5da003)
This code ended up ignoring *all* MP test failures, in particular the one
fixed in commit 11d7b9f0cf.

I'd test the code and fix it if I could, but unfortunately I can no longer
develop on GNU/Linux because of PC issues (which I mentioned in Discord).
Therefore I'm just reverting the entire change.
2017-11-29 21:34:03 +02:00
Alexander van Gessel
fc0674bcb6 Change *_RUNNING vars to string comparisons 2017-10-04 17:00:31 +02:00
Alexander van Gessel
fea609d309 Add missing break 2017-10-04 11:17:38 +02:00
Alexander van Gessel
2e5c5da003 MP test: treat failed init of SDL_video as a 'successful' test 2017-10-04 09:32:00 +02:00
Alexander van Gessel
7b3254964d Ensure that mp_test_executor exits 2017-10-04 09:12:32 +02:00
Charles Dang
3ff4a18983 Update GUI2 test plugin names (since c43651f99b) 2016-11-12 18:35:44 +11:00
Celtic Minstrel
c43651f99b Rename GUI2 MP tests to replace their now-missing GUI1 counterparts 2016-11-11 17:33:25 -05:00
Celtic Minstrel
5c57f25ce7 Remove GUI1 MP tests 2016-11-11 17:33:25 -05:00
Chris Beck
9b78a41d25 unit tests: add --noaddons switch to the networked mp unit tests 2015-03-05 13:28:33 -05:00
Chris Beck
e3bc595fff travis: add mp unit tests to travis build #3 (clang -O2) 2014-12-19 19:47:29 -05:00