Fix sonar error 22/102722/1
authoryangyan <yangyanyj@chinamobile.com>
Mon, 2 Mar 2020 08:27:46 +0000 (16:27 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Mon, 2 Mar 2020 08:27:56 +0000 (16:27 +0800)
Change-Id: I995036cd90f5e08e3d6e26cfaae7d3de55023785
Issue-ID: VFC-1621
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
mvn-phase-script.sh

index 6b41abf..13b755e 100755 (executable)
@@ -52,7 +52,7 @@ run_tox_test()
     echo "====Sonar job, need execute tox."
     TOXINIS=$(find . -name "tox.ini")
     for TOXINI in "${TOXINIS[@]}"; do
-      DIR=$(echo "$TOXINI" | rev | cut -f2- -d'/' | rev)
+      DIR=$(echo "$TOXINI" | rev | cut -f3- -d'/' | rev)
       cd "${CURDIR}/${DIR}"
       rm -rf ./venv-tox ./.tox
       virtualenv ./venv-tox