From: aude Date: Sun, 24 Nov 2013 00:20:46 +0000 (+0100) Subject: Call parent::setUp() in DiffHistoryBlobTest before marking skipped tests X-Git-Tag: 1.31.0-rc.0~17923^2 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=3c57bec275accde0ca403d6e186806efae2fb6df;p=lhc%2Fweb%2Fwiklou.git Call parent::setUp() in DiffHistoryBlobTest before marking skipped tests Jenkins skips these tests because xdiff is unavailable. The tests get marked as skipped, out of order and before the error reporting setup. Things are left in an inconsistent state when running *all* the tests together, and interferes with later error handling (including PHPUnit_Framework_Error) in other tests. The gate-and-submit and other jobs are split into multiple jobs, and for some reason does not trigger this issue. This will probably fix bug 57488. Bug: 57488 Change-Id: Ie1a213e912b5858b43956fc35cf00226636f2093 --- diff --git a/tests/phpunit/includes/DiffHistoryBlobTest.php b/tests/phpunit/includes/DiffHistoryBlobTest.php index 76a9a10c8f..0b04c6e5ea 100644 --- a/tests/phpunit/includes/DiffHistoryBlobTest.php +++ b/tests/phpunit/includes/DiffHistoryBlobTest.php @@ -1,7 +1,10 @@ markTestSkipped( 'The xdiff extension is not available' ); @@ -17,7 +20,6 @@ class DiffHistoryBlobTest extends MediaWikiTestCase { return; } - parent::setUp(); } /**