From 33c5187703605538a369e3a9b0c3c169fe46a4c8 Mon Sep 17 00:00:00 2001 From: Vfrolov Date: Tue, 5 Jul 2022 15:56:28 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 0fe9baa0ff..83e310e62d 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 @@ -128,7 +128,7 @@ open class FixTestBase( processBuilder.redirectOutput(file) downloadFile("https://github.com/saveourtool/save-cli/releases/download/v$saveVersion/${getSaveForCurrentOs()}", save) - downloadFile("https://github.com/pinterest/ktlint/releases/download/0.46.1/ktlint", ktlint) + downloadFile("https://github.com/pinterest/ktlint/releases/download/$ktlintVersion/ktlint", ktlint) val process = processBuilder.start() process.waitFor() @@ -205,5 +205,6 @@ open class FixTestBase( companion object { private val saveVersion = "0.3.1" + private val ktlintVersion = "0.46.1" } }