fix sonar error 96/103496/1
authordyh <dengyuanhong@chinamobile.com>
Wed, 11 Mar 2020 07:16:18 +0000 (15:16 +0800)
committerdyh <dengyuanhong@chinamobile.com>
Wed, 11 Mar 2020 07:19:38 +0000 (15:19 +0800)
Change-Id: I7c904de9e84bc4f76c1f197adace9fbac8c7f1db
Issue-ID: MODELING-342
Signed-off-by: dyh <dengyuanhong@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