Commit 5b73bea3 authored by jiangpeng's avatar jiangpeng Committed by vipwzw

script:update autotest get chain33 path

parent 6a3fd8fe
...@@ -13,14 +13,7 @@ if [ "$(uname)" == "Darwin" ]; then ...@@ -13,14 +13,7 @@ if [ "$(uname)" == "Darwin" ]; then
fi fi
## get chain33 path ## get chain33 path
CHAIN33_PATH=$(grep -m1 github.com/33cn/chain33 ../../go.mod | grep -o '[^ ]\+$') CHAIN33_PATH=$(go list -f "{{.Dir}}" github.com/33cn/chain33)
CHAIN33_PATH="${CHAIN33_PATH%/}"
if [[ -d ../../${CHAIN33_PATH} ]]; then
CHAIN33_PATH=../../"$CHAIN33_PATH"
elif [[ ! -d ${CHAIN33_PATH} ]]; then
CHAIN33_PATH="${GOPATH}"/pkg/mod/github.com/33cn/chain33@"$CHAIN33_PATH"
fi
function build_auto_test() { function build_auto_test() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment