gliga / ekstazi

Software testing optimization tool
Apache License 2.0
27 stars 15 forks source link

Win10 - fix mvn test failure #34

Open YiranCdr opened 4 years ago

YiranCdr commented 4 years ago

In ekstazi\org.ekstazi.core.test\src\main\java\org\ekstazi\it\AbstractCmd.java, the generated maven commands will start with "mvn ...". However on Windows, directly apply this command will raise a problem (link).

We add 3 lines to AbstractCmd.java at line 49.

if (System.getProperty("os.name").toLowerCase().contains("win") && command[0].equals("mvn"){
    command[0] = "mvn.cmd";
}