Commit e9d3c496 authored by jiangpeng's avatar jiangpeng Committed by vipwzw

script:update autotest

parent 4f85541c
......@@ -24,13 +24,11 @@ fi
function build_auto_test() {
trap "rm -f ../autotest/main.go" INT TERM EXIT RETURN
trap "rm -f ../autotest/main.go" INT TERM EXIT
local AutoTestMain="${CHAIN33_PATH}/cmd/autotest/main.go"
local ImportPlugin='"github.com/33cn/plugin/plugin"'
cp "${AutoTestMain}" ./
sed -i $sedfix "/^package/a import _ ${ImportPlugin}" main.go
sed -i $sedfix '/^package/a import _ \"github.com\/33cn\/plugin\/plugin\"' main.go
go build -v -i -o autotest
}
function copyAutoTestConfig() {
......
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