Skip to content

Commit

Permalink
Migrate diktat smoke tests to SAVE-cli mechanism
Browse files Browse the repository at this point in the history
### What's done:
* migrated diktat smoke tests to SAVE-cli mechanism
Closes #1383
  • Loading branch information
Cheshiriks committed Jul 11, 2022
1 parent d8a4e25 commit 5122d82
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ open class FixTestBase(
}

private fun createProcessBuilderWithCmd(expectedPath: String, testPath: String): ProcessBuilder {
val filesDir = "/src/test/resources/test/smoke"
val filesDir = "src/test/resources/test/smoke"
val savePath = "$filesDir/${getSaveForCurrentOs()}"

val systemName = System.getProperty("os.name")
return when {
systemName.startsWith("Linux", ignoreCase = true) || systemName.startsWith("Mac", ignoreCase = true) ->
ProcessBuilder("chmod", "-R", "777", filesDir, "&", "./$savePath", "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath, "--log", "all")
ProcessBuilder("chmod", "-R", "777", "/${filesDir}", "&", "./$savePath", "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath, "--log", "all")
else -> ProcessBuilder(savePath, "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath)
}
}
Expand Down

0 comments on commit 5122d82

Please sign in to comment.