Commit 8991b218 authored by mdj33's avatar mdj33 Committed by vipwzw

fix rpc test

parent 64892e5d
......@@ -5,16 +5,18 @@ RPC_TESTFILE=test-rpc.sh
function dapp_test_rpc() {
local ip=$1
echo "============ # dapp rpc test ============="
echo "============ # dapp rpc test begin ============="
if [ -d dapptest ]; then
cd dapptest || return
dir=$(find . -maxdepth 1 -type d ! -name dapptest ! -name . | sed 's/^\.\///')
for app in $dir; do
echo "=========== # $app rpc test ============="
./"$app/${RPC_TESTFILE}" "$ip"
echo "=========== # $app rpc end ============="
done
fi
echo "============ # dapp rpc test end ============="
}
#dapp_test_rpc $1
......@@ -232,13 +232,9 @@ function run_testcases() {
}
function main() {
local ip=$1
MAIN_HTTP="http://$ip:8801"
PARA_HTTP="http://$ip:8901"
echo "=========== # paracross rpc test ============="
echo "main_ip=$MAIN_HTTP,para_ip=$PARA_HTTP"
MAIN_HTTP="$1"
echo "main_ip=$MAIN_HTTP"
UNIT_HTTP=$MAIN_HTTP
run_testcases
if [ -n "$CASE_ERR" ]; then
......
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