瀏覽代碼

Don't reference by $GOROOT

Taylor Gerring 10 年之前
父節點
當前提交
ae3e9d4881
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gocoverage.sh

+ 2 - 2
gocoverage.sh

@@ -15,7 +15,7 @@ if ls $dir/*.go &> /dev/null; then
     # echo $dir
     if [[ $dir != "./tests/vm" ]]
     then
-        $GOROOT/bin/go test -covermode=count -coverprofile=$dir/profile.tmp $dir
+        go test -covermode=count -coverprofile=$dir/profile.tmp $dir
     fi
     if [ -f $dir/profile.tmp ]
     then
@@ -25,5 +25,5 @@ if ls $dir/*.go &> /dev/null; then
 fi
 done
 
-$GOROOT/bin/go tool cover -func profile.cov
+go tool cover -func profile.cov