Fix: Tox fails on second run 40/70440/1
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 5 Aug 2022 02:09:21 +0000 (12:09 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 5 Aug 2022 02:09:21 +0000 (12:09 +1000)
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 <abelur@linuxfoundation.org>
Change-Id: Iad18a535083644e14cd5734b5b220c0789cf3e43

tox.ini

diff --git a/tox.ini b/tox.ini
index 8dd9362..1f1178a 100644 (file)
--- 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