Anomie has uploaded a new change for review. https://gerrit.wikimedia.org/r/312032
Change subject: DO NOT MERGE - TESTING ...................................................................... DO NOT MERGE - TESTING Let's try to dump some extra data to the Jenkins log to see if we can see where things are going wrong with the tests all failing. Change-Id: Ic378e101757a40967d35aa3c29e0fe4a95d26638 --- M tests/phpunit/CentralAuthTestCaseUsingDatabase.php 1 file changed, 23 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth refs/changes/32/312032/1 diff --git a/tests/phpunit/CentralAuthTestCaseUsingDatabase.php b/tests/phpunit/CentralAuthTestCaseUsingDatabase.php index d4e6bf1..66d0ecc 100644 --- a/tests/phpunit/CentralAuthTestCaseUsingDatabase.php +++ b/tests/phpunit/CentralAuthTestCaseUsingDatabase.php @@ -40,16 +40,31 @@ $wgCentralAuthDatabase = false; // use the current wiki db $db = wfGetDB( DB_MASTER ); + fprintf( STDERR, "Setting up class " . static::class . " with prefix '" . $db->tablePrefix() . "'\n" ); + $tables = []; + $res = $db->query( "SHOW TABLES", __METHOD__ ); + while ( $row = $res->fetchRow() ) { + $row = array_values( $row ); + $tables[] = $row[0]; + } + fprintf( STDERR, " Tables: " . join(' ', $tables) . "\n" ); if ( $db->tablePrefix() !== MediaWikiTestCase::DB_PREFIX ) { + fprintf( STDERR, "Table prefix is " . $db->tablePrefix() . " !== " . MediaWikiTestCase::DB_PREFIX . "\n" ); $originalPrefix = $db->tablePrefix(); $db->tablePrefix( MediaWikiTestCase::DB_PREFIX ); if ( !$db->tableExists( 'globaluser' ) ) { + fprintf( STDERR, "Creating tables!\n" ); $db->sourceFile( __DIR__ . '/../../central-auth.sql' ); + } else { + fprintf( STDERR, "Tables already exist!\n" ); } $db->tablePrefix( $originalPrefix ); } else { if ( !$db->tableExists( 'globaluser' ) ) { + fprintf( STDERR, "Creating tables!\n" ); $db->sourceFile( __DIR__ . '/../../central-auth.sql' ); + } else { + fprintf( STDERR, "Tables already exist!\n" ); } } } @@ -57,9 +72,17 @@ public static function tearDownAfterClass() { global $wgCentralAuthDatabase; $db = wfGetDB( DB_MASTER ); + fprintf( STDERR, "Tearing down class " . static::class . " with prefix '" . $db->tablePrefix() . "'\n" ); foreach ( self::$centralauthTables as $table ) { $db->dropTable( $table ); } + $tables = []; + $res = $db->query( "SHOW TABLES", __METHOD__ ); + while ( $row = $res->fetchRow() ) { + $row = array_values( $row ); + $tables[] = $row[0]; + } + fprintf( STDERR, " Tables: " . join(' ', $tables) . "\n" ); if ( !is_null( self::$centralAuthDatabase ) ) { $wgCentralAuthDatabase = self::$centralAuthDatabase; } -- To view, visit https://gerrit.wikimedia.org/r/312032 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic378e101757a40967d35aa3c29e0fe4a95d26638 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Anomie <bjor...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits