Page MenuHomePhabricator

parserTests.php always assumes $wgDBprefix is 'parsertest_'
Closed, ResolvedPublic

Description

parserTests.php always assumes $wgDBprefix is 'parsertest_'. Without making a change in parserTests.inc line 540 ('wgDBprefix' => 'parsertest_') this would never run succesfully and exit with something like "Error: 1146 Table 'mediawiki.parsertest_objectcache' doesn't exist (localhost)".

I suggest that a commandline option is added to change the used database prefix, with a special case for when no prefix is used.


Version: unspecified
Severity: enhancement

Details

Reference
bz16374

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:23 PM
bzimport set Reference to bz16374.
bzimport added a subscriber: Unknown Object (MLST).

The prefix for the test database *is* 'parsertest_'; this is correct.

I assume you're referring to the problem where the objectcache is pulling things incorrectly when not fully set up?

There is little to no documentation I could find on running parser tests. Do I assume correctly that you mean that a database prefix of 'parsertest_' is *required* for properly running parser tests?

I think this is a duplicate of bug 15892, and should be fixed (though inelegantly) by r44003.

*** This bug has been marked as a duplicate of bug 15892 ***