Auto-add testRunner.sql without breaking if run from outside the maintenance directory
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 2 Oct 2007 15:37:04 +0000 (15:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 2 Oct 2007 15:37:04 +0000 (15:37 +0000)
maintenance/parserTests.inc

index 510a2db..3c0fbb8 100644 (file)
@@ -946,7 +946,7 @@ class DbTestRecorder extends TestRecorder  {
 
                if( ! $this->db->tableExists( 'testrun' ) or ! $this->db->tableExists( 'testitem') ) {
                        print "WARNING> `testrun` table not found in database. Trying to create table.\n";
-                       dbsource( 'testRunner.sql',  $this->db );
+                       dbsource( dirname(__FILE__) . '/testRunner.sql',  $this->db );
                        echo "OK, resuming.\n";
                }