From e9f1ffeed7565fe984c0eed8660a1dd86d14c1e2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 27 Jan 2012 22:57:14 +0000 Subject: [PATCH] Killed the metric arseload of test folders that were being leaked and killing jenkins --- tests/phpunit/includes/parser/NewParserTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index 71177e632d..cfbaab33a1 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -445,6 +445,7 @@ class NewParserTest extends MediaWikiTestCase { "$base/local-thumb/3/3a/Foobar.jpg/640px-Foobar.jpg", "$base/local-thumb/3/3a/Foobar.jpg/120px-Foobar.jpg", + "$base/local-public/0/09/Bad.jpg", "$base/local-thumb/0/09/Bad.jpg", "$base/local-public/math/f/a/5/fa50b8b616463173474302ca3e63586b.png", @@ -464,7 +465,9 @@ class NewParserTest extends MediaWikiTestCase { foreach ( $files as $file ) { $tmp = $file; while ( $tmp = FileBackend::parentStoragePath( $tmp ) ) { - $backend->clean( array( 'dir' => $tmp ) ); + if ( !$backend->clean( array( 'dir' => $tmp ) )->isOK() ) { + break; + } } } } -- 2.20.1