Skip to content

Commit

Permalink
Silently overwrite diktat.jar if the previous copy already exists (#…
Browse files Browse the repository at this point in the history
…1498)

### 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).
  • Loading branch information
0x6675636b796f75676974687562 authored Aug 9, 2022
1 parent cf44ad0 commit 1adb2ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1adb2ed

Please sign in to comment.