From: Anil Belur Date: Fri, 5 Aug 2022 02:09:21 +0000 (+1000) Subject: Fix: Tox fails on second run X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=8a2c69143925c06b909d16ea8cef76682b268630;p=releng%2Fpipelines.git Fix: Tox fails on second run Tox fails on the second run when the symlink is already available, add -f to force if the symlink exists. Signed-off-by: Anil Belur Change-Id: Iad18a535083644e14cd5734b5b220c0789cf3e43 --- diff --git a/tox.ini b/tox.ini index 8dd9362..1f1178a 100644 --- a/tox.ini +++ b/tox.ini @@ -32,7 +32,7 @@ commands_pre = "https://services.gradle.org/distributions/gradle-{env:GRADLE_VER}-bin.zip" \ -o {envtmpdir}/gradle.zip && \ unzip -o {envtmpdir}/gradle.zip -d {envtmpdir} && \ - ln -s {envtmpdir}/gradle-{env:GRADLE_VER}/bin/gradle \ + ln -sf {envtmpdir}/gradle-{env:GRADLE_VER}/bin/gradle \ {envbindir}/gradle; fi' commands = gradle wrapper --gradle-version {env:GRADLE_VER} --distribution-type all