Skip to content
Snippets Groups Projects
Commit 012e48ff authored by Sean Busbey's avatar Sean Busbey Committed by Sean Busbey
Browse files

[accumulo] don't run Accumulo tests on windows build.

The Accumulo tests don't properly initialize their mini cluster on windows,
so skip the tests entirely in that environment.

closes #617
parent c4d00742
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ package com.yahoo.ycsb.db.accumulo;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import java.util.Map.Entry;
import java.util.Properties;
......@@ -70,8 +71,16 @@ public class AccumuloTest {
private DB client;
private Properties workloadProps;
private static boolean isWindows() {
final String os = System.getProperty("os.name");
return os.startsWith("Windows");
}
@BeforeClass
public static void setup() throws Exception {
// Minicluster setup fails on Windows with an UnsatisfiedLinkError.
// Skip if windows.
assumeTrue(!isWindows());
cluster = new MiniAccumuloCluster(workingDir.newFolder("accumulo").getAbsoluteFile(), "protectyaneck");
LOG.debug("starting minicluster");
cluster.start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment