Commit 239989d2 authored by linj's avatar linj Committed by vipwzw

add debug

parent 592f85c2
...@@ -209,6 +209,7 @@ function GetUnfreeze() { ...@@ -209,6 +209,7 @@ function GetUnfreeze() {
[ "$ok" == true ] [ "$ok" == true ]
echo_rst "$FUNCNAME" "$?" echo_rst "$FUNCNAME" "$?"
} }
function GetUnfreezeWithdraw() { function GetUnfreezeWithdraw() {
req='{"method":"unfreeze.GetUnfreezeWithdraw","params":[{"data":"'${uid}'"}]}' req='{"method":"unfreeze.GetUnfreezeWithdraw","params":[{"data":"'${uid}'"}]}'
# echo "#request: $req" # echo "#request: $req"
...@@ -217,19 +218,24 @@ function GetUnfreezeWithdraw() { ...@@ -217,19 +218,24 @@ function GetUnfreezeWithdraw() {
ok=$(jq '(.error|not) and (.result != "")' <<<"$resp") ok=$(jq '(.error|not) and (.result != "")' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
echo_rst "$FUNCNAME" "$?" echo_rst "$FUNCNAME" "$?"
} }
function run_testcases() { function run_testcases() {
CreateRawUnfreezeCreate CreateRawUnfreezeCreate
CreateRawUnfreezeWithdraw CreateRawUnfreezeWithdraw
GetUnfreeze debug_function GetUnfreeze
GetUnfreezeWithdraw debug_function GetUnfreezeWithdraw
CreateRawUnfreezeTerminate CreateRawUnfreezeTerminate
} }
function debug_function() {
set -x
eval $@
set +x
}
function rpc_test() { function rpc_test() {
MAIN_HTTP="$1" MAIN_HTTP="$1"
echo "main_ip=$MAIN_HTTP" echo "main_ip=$MAIN_HTTP"
......
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