Skip to content

Commit

Permalink
add DataFilesUtil.isWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
arksap2002 committed Jan 17, 2024
1 parent c728ca3 commit f61c9ef
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import org.jetbrains.research.testspark.bundles.TestSparkBundle
import org.jetbrains.research.testspark.services.ErrorService
import org.jetbrains.research.testspark.services.SettingsProjectService
import java.util.concurrent.CountDownLatch
import org.jetbrains.research.testspark.data.DataFilesUtil

/**
* This class builds the project before running EvoSuite and before validating the tests.
Expand Down Expand Up @@ -64,9 +65,7 @@ class ProjectBuilder(private val project: Project) {
// Save all open editors
val cmd = ArrayList<String>()

val operatingSystem = System.getProperty("os.name")

if (operatingSystem.lowercase().contains("windows")) {
if (DataFilesUtil.isWindows()) {
cmd.add("cmd.exe")
cmd.add("/c")
} else {
Expand Down

0 comments on commit f61c9ef

Please sign in to comment.