Last modified: 2012-05-01 19:33:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38353, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36353 - UploadStashTest::testBug29408 gives error (directorycreateerror) in spanish, and no parameter substituted
UploadStashTest::testBug29408 gives error (directorycreateerror) in spanish, ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.19
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-30 16:08 UTC by Sam Reed (reedy)
Modified: 2012-05-01 19:33 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2012-04-30 16:08:27 UTC
4) UploadStashTest::testBug29408
UploadStashFileException: Error storing file in '/var/www/wiki/w/tests/phpunit/includes/upload/bug29408.': No se pudo crear el directorio «$1».

/var/www/wiki/w/includes/upload/UploadStash.php:218
/var/www/wiki/w/tests/phpunit/includes/upload/UploadStashTest.php:42
/var/www/wiki/w/tests/phpunit/MediaWikiTestCase.php:75
/var/www/wiki/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/var/www/wiki/w/tests/phpunit/phpunit.php:103


Test I guess failing due to file permissions, but the error message is not in English, and $1 isn't substituted

Might want pushing to core itself...

Noticed when running ALL tests
Comment 1 Sam Reed (reedy) 2012-04-30 16:12:55 UTC
Run alone:


reedy@ubuntu64-web-esxi:/var/www/wiki/w$ php tests/phpunit/phpunit.php tests/phpunit/includes/upload/UploadStashTest.php
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from /var/www/wiki/w/tests/phpunit/suite.xml

E.

Time: 6 seconds, Memory: 47.25Mb

There was 1 error:

1) UploadStashTest::testBug29408
UploadStashFileException: Error storing file in '/var/www/wiki/w/tests/phpunit/includes/upload/bug29408.': Could not create directory "$1".

/var/www/wiki/w/includes/upload/UploadStash.php:218
/var/www/wiki/w/tests/phpunit/includes/upload/UploadStashTest.php:42
/var/www/wiki/w/tests/phpunit/MediaWikiTestCase.php:75
/var/www/wiki/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45
/var/www/wiki/w/tests/phpunit/phpunit.php:103




I'm guessing ArticleTablesTest::testbug14404() is at fault:

		$wgLanguageCode = 'es';
		$wgContLang = Language::factory( 'es' );

tearDown() does do

	public function tearDown() {
		global $wgContLang, $wgLang, $wgLanguageCode;
		$wgLang = self::$oldLang;

		$wgContLang = self::$oldContLang;
		$wgLanguageCode = $wgContLang->getCode();
		self::$oldContLang = self::$oldLang = null;
	}

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links