Fix maven detection in tox.ini 72/95472/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Thu, 11 Mar 2021 16:25:29 +0000 (17:25 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 12 Mar 2021 09:13:12 +0000 (09:13 +0000)
which is better indicated than command eventually

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I3398199c15e3d0449f84be5967acd8e1145cc587
(cherry picked from commit 2daa093d70cd42b92a52d890f53a71349c027f3e)

tox.ini

diff --git a/tox.ini b/tox.ini
index a9a43e5a7f92af4ab4c2d4358925b78b7f584138..996eb87cd292afd5dfc392a0778229b77a9002ba 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -21,7 +21,7 @@ whitelist_externals = sh
 changedir={toxinidir}/tests
 commands =
 #install maven and JDK11 on the Gate since they are not there by default
-  {py3,portmapping,topoPortMapping,rspn,topology,pce,olm,end2end,portmapping221,rspn221,otnrenderer,otnshrenderer,topology221,otntopology,flexgrid,olm221,tapi221,otnend2end,end2end221,gnpy}: - sh -c "command mvn >/dev/null || ./installMavenCentOS.sh"
+  {py3,portmapping,topoPortMapping,rspn,topology,pce,olm,end2end,portmapping221,rspn221,otnrenderer,otnshrenderer,topology221,otntopology,flexgrid,olm221,tapi221,otnend2end,end2end221,gnpy}: - sh -c "which mvn >/dev/null || ./installMavenCentOS.sh"
 #install honeynode 1.2.1 simulators
   {py3,portmapping,topoPortMapping,rspn,topology,pce,olm,end2end}: - sh -c "./install_honeynode.sh 1.2.1"
 #patch OLM constant to speed up tests, unnecessary for PCE