From d16c8f274db1977ffb2f46253d3dc8caf0fe17c6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 2 Oct 2007 15:37:04 +0000 Subject: [PATCH] Auto-add testRunner.sql without breaking if run from outside the maintenance directory --- maintenance/parserTests.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.20.1