From fa10731dc00950960472452fc79385c688c667bb Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Mon, 11 Jul 2022 12:56:18 +0300 Subject: [PATCH] Migrate diktat smoke tests to SAVE-cli mechanism ### What's done: * migrated diktat smoke tests to SAVE-cli mechanism Closes #1383 --- .../src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt index 85043d2818..51f1a930b3 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/FixTestBase.kt @@ -76,11 +76,11 @@ open class FixTestBase( } private fun getProcessBuilder(expectedPath: String, testPath: String): ProcessBuilder { - val saveDir = "src/test/resources/test/smoke/${getSaveForCurrentOs()}" + val saveDir = "src/test/resources/test/smoke" val systemName = System.getProperty("os.name") return when { systemName.startsWith("Linux", ignoreCase = true) || systemName.startsWith("Mac", ignoreCase = true) -> - ProcessBuilder("chmod", "777", saveDir, "&", saveDir, "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath) + ProcessBuilder("chmod", "-R", "777", saveDir, "&", saveDir, "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath) else -> ProcessBuilder(saveDir, "src/test/resources/test/smoke/src/main/kotlin", expectedPath, testPath) } }