From: Brion Vibber Date: Tue, 2 Oct 2007 15:37:04 +0000 (+0000) Subject: Auto-add testRunner.sql without breaking if run from outside the maintenance directory X-Git-Tag: 1.31.0-rc.0~51229 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=d16c8f274db1977ffb2f46253d3dc8caf0fe17c6;p=lhc%2Fweb%2Fwiklou.git Auto-add testRunner.sql without breaking if run from outside the maintenance directory --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 510a2db21f..3c0fbb8e96 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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"; }