mirror of https://github.com/apache/lucene.git
SOLR-4233: throw assumption for this test on OS X: it fails due to AWT engine startup
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1425969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15bf918824
commit
0c86e24407
|
@ -17,6 +17,7 @@
|
|||
|
||||
package org.apache.solr.update.processor;
|
||||
|
||||
import org.apache.lucene.util.Constants;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
|
||||
import javax.script.Invocable;
|
||||
|
@ -38,6 +39,8 @@ public class ScriptEngineTest extends LuceneTestCase {
|
|||
|
||||
@BeforeClass
|
||||
public static void beforeClass() throws Exception {
|
||||
assumeFalse("https://twitter.com/UweSays/status/260487231880433664 / SOLR-4233: OS X bogusly starts AWT!",
|
||||
Constants.MAC_OS_X);
|
||||
Assume.assumeNotNull((new ScriptEngineManager()).getEngineByExtension("js"));
|
||||
Assume.assumeNotNull((new ScriptEngineManager()).getEngineByName("JavaScript"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue