From 35036ea64535492a86abed2f3bd60177b06b880e Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Mon, 8 Aug 2022 17:51:24 +0300 Subject: [PATCH] Silently overwrite `diktat.jar` if the previous copy already exists ### What's done: * A smoke test will no longer fail if `diktat.jar` from the previous run was not deleted (e.g.: due to an abnormal test termination). --- .../kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt index 638d35ee91..10e9c6c2bb 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/smoke/DiktatSaveSmokeTest.kt @@ -186,7 +186,7 @@ class DiktatSaveSmokeTest : DiktatSmokeTestBase() { downloadFile(URL("https://github.com/saveourtool/save-cli/releases/download/v$SAVE_VERSION/${getSaveForCurrentOs()}"), save) downloadFile(URL("https://github.com/pinterest/ktlint/releases/download/$KTLINT_VERSION/ktlint"), ktlint) - diktatFrom?.copyTo(diktat) + diktatFrom?.copyTo(diktat, overwrite = true) } @AfterAll