From f8ad40340848426b7db4caf414b5d1ebe80394e7 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Mon, 31 Aug 2009 14:29:11 +0000 Subject: [PATCH] skip math-related tests if $wgUseTeX is set to false in LocalSettings: this probably means we don't have a working texvc program available --- maintenance/parserTests.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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'] ), -- 2.20.1