Commit b3de92ec authored by Pietro Braghieri's avatar Pietro Braghieri
Browse files

improve test skipping in case of windows

parent 88394efd
......@@ -18,6 +18,8 @@ import java.net.MalformedURLException;
import java.util.concurrent.TimeoutException;
import org.apache.commons.lang3.tuple.Triple;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import eu.fbk.tools.adapter.ToolRunner;
......@@ -26,15 +28,16 @@ import eu.fbk.tools.adapter.script.GenerateRedundantArchitecture.RedundantArchit
public class RedundantArchitectureGeneratorTest extends RedundantArchitectureGeneratorBase
{
@Before
public void beforeMethod()
{
// If Win OS, this test is not included because the Python scripts works only on Linux
Assume.assumeFalse(System.getProperty("os.name").toLowerCase().startsWith("win"));
}
@Test
public void test() throws MalformedURLException
{
final String os = System.getProperty("os.name");
if( os.toLowerCase().contains("windows") )
{
return;
}
final GenerateRedundantArchitecture function = new GenerateRedundantArchitecture();
function.setArchitectureType(RedundantArchitectureType.linear);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment