Fix sonar build scripts 71/8071/1 1.0.0 1.1.0
authorelinuxhenrik <henrik.b.andersson@est.tech>
Tue, 12 Apr 2022 14:27:36 +0000 (16:27 +0200)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Tue, 12 Apr 2022 14:27:40 +0000 (16:27 +0200)
Issue-ID: NONRTRIC-710
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I79dce5311da490973a04d93f39c028997b751486

icsversion/build-ransliceassurance-ubuntu.sh [changed mode: 0644->0755]
smoversion/build-ransliceassurance-ubuntu.sh

old mode 100644 (file)
new mode 100755 (executable)
index 5bb3f31..8b57494
@@ -19,7 +19,6 @@
 set -eux
 
 echo "--> build-ransliceassurance-ubuntu.sh"
-curdir=`pwd`
 # go installs tools like go-acc to $HOME/go/bin
 # ubuntu minion path lacks go
 export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
@@ -34,7 +33,6 @@ go get github.com/stretchr/testify/mock@v1.7.0
 
 go-acc ./... --ignore mocks
 
-sed -i -e 's/oransc\.org\/usecase\/oduclosedloop/icsversion/' coverage.txt
+sed -i -e 's/oransc\.org\/usecase\/oduclosedloop\///' coverage.txt
 
-cp coverage.txt $curdir
 echo "--> build-ransliceassurance-ubuntu.sh ends"
index e86ed49..faf3efc 100755 (executable)
@@ -19,7 +19,6 @@
 set -eux
 
 echo "--> build-ransliceassurance-ubuntu.sh"
-curdir=`pwd`
 # go installs tools like go-acc to $HOME/go/bin
 # ubuntu minion path lacks go
 export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
@@ -36,5 +35,4 @@ go-acc ./... --ignore mocks
 
 sed -i -e 's/oransc\.org\/usecase\/oduclosedloop/smoversion/' coverage.txt
 
-cp coverage.txt $curdir
 echo "--> build-ransliceassurance-ubuntu.sh ends"