test log func for swallowing command output
parent
5cc5bfb9d6
commit
cf6801d35b
|
@ -11,6 +11,12 @@ accounts=$(curl -s http://localhost:1317/cosmos/auth/v1beta1/accounts | jq -M ".
|
||||||
declare -g ALICE=$(echo $accounts | jq -rM '.[] | select(.account_number == "0") | .address')
|
declare -g ALICE=$(echo $accounts | jq -rM '.[] | select(.account_number == "0") | .address')
|
||||||
declare -g BOB=$(echo $accounts | jq -rM '.[] | select(.account_number == "1") | .address')
|
declare -g BOB=$(echo $accounts | jq -rM '.[] | select(.account_number == "1") | .address')
|
||||||
|
|
||||||
|
function swallow {
|
||||||
|
read -r out
|
||||||
|
log_ok
|
||||||
|
echo $1 + swallow error
|
||||||
|
}
|
||||||
|
|
||||||
function assert_eq {
|
function assert_eq {
|
||||||
read -r out
|
read -r out
|
||||||
if [[ $out = $1 ]]; then
|
if [[ $out = $1 ]]; then
|
||||||
|
|
Loading…
Reference in New Issue