From ec3289524e33fd93c9dc51c2a0ddffc24068583a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 25 Jun 2018 21:14:08 +0100 Subject: [PATCH] Avoid bad method call to patchPatch() in DbTestRecorder Bug: T193995 Change-Id: Ibc480b04463792b7cd720a6eb080e0960a30e440 --- tests/parser/DbTestRecorder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/parser/DbTestRecorder.php b/tests/parser/DbTestRecorder.php index f68f5953d1..2089f64a02 100644 --- a/tests/parser/DbTestRecorder.php +++ b/tests/parser/DbTestRecorder.php @@ -41,7 +41,8 @@ class DbTestRecorder extends TestRecorder { || !$this->db->tableExists( 'testitem' ) ) { print "WARNING> `testrun` table not found in database. Trying to create table.\n"; - $this->db->sourceFile( $this->db->patchPath( 'patch-testrun.sql' ) ); + $updater = DatabaseUpdater::newForDB( $this->db ); + $this->db->sourceFile( $updater->patchPath( $this->db, 'patch-testrun.sql' ) ); echo "OK, resuming.\n"; } -- 2.20.1