From: Ilmari Karonen Date: Mon, 31 Aug 2009 14:29:11 +0000 (+0000) Subject: skip math-related tests if $wgUseTeX is set to false in LocalSettings: this probably... X-Git-Tag: 1.31.0-rc.0~39989 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=f8ad40340848426b7db4caf414b5d1ebe80394e7;p=lhc%2Fweb%2Fwiklou.git skip math-related tests if $wgUseTeX is set to false in LocalSettings: this probably means we don't have a working texvc program available --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 8525594b71..6a5ffdd733 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -367,6 +367,12 @@ class ParserTest { $section = null; continue; } + if ( preg_match('/\\bmath\\b/i', $data['options']) && !$this->savedGlobals['wgUseTeX'] ) { + # don't run math tests if $wgUseTeX is set to false in LocalSettings + $data = array(); + $section = null; + continue; + } $result = $this->runTest( $this->chomp( $data['test'] ), $this->chomp( $data['input'] ),