mirror of https://github.com/apache/lucene.git
SOLR-4916: Do not run hdfs tests on FreeBSD because they do not play nice with blackhole
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1497458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
874e966970
commit
181296ff41
|
@ -46,6 +46,8 @@ public final class Constants {
|
||||||
public static final boolean SUN_OS = OS_NAME.startsWith("SunOS");
|
public static final boolean SUN_OS = OS_NAME.startsWith("SunOS");
|
||||||
/** True iff running on Mac OS X */
|
/** True iff running on Mac OS X */
|
||||||
public static final boolean MAC_OS_X = OS_NAME.startsWith("Mac OS X");
|
public static final boolean MAC_OS_X = OS_NAME.startsWith("Mac OS X");
|
||||||
|
/** True iff running on FreeBSD */
|
||||||
|
public static final boolean FREE_BSD = OS_NAME.startsWith("FreeBSD");
|
||||||
|
|
||||||
public static final String OS_ARCH = System.getProperty("os.arch");
|
public static final String OS_ARCH = System.getProperty("os.arch");
|
||||||
public static final String OS_VERSION = System.getProperty("os.version");
|
public static final String OS_VERSION = System.getProperty("os.version");
|
||||||
|
|
|
@ -35,6 +35,8 @@ public class HdfsTestUtil {
|
||||||
|
|
||||||
public static MiniDFSCluster setupClass(String dataDir) throws Exception {
|
public static MiniDFSCluster setupClass(String dataDir) throws Exception {
|
||||||
LuceneTestCase.assumeFalse("HDFS tests on Windows require Cygwin", Constants.WINDOWS);
|
LuceneTestCase.assumeFalse("HDFS tests on Windows require Cygwin", Constants.WINDOWS);
|
||||||
|
LuceneTestCase.assumeFalse("HDFS do not work well with FreeBSD blackhole setup", Constants.FREE_BSD);
|
||||||
|
// LuceneTestCase.assumeFalse("HDFS tests on Windows require Cygwin", Constants.F);
|
||||||
File dir = new File(dataDir);
|
File dir = new File(dataDir);
|
||||||
new File(dataDir).mkdirs();
|
new File(dataDir).mkdirs();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue