[#118] bin: Use non-interactive docker exec
on testinvokefunction
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
80b7b3caeb
commit
3102e72cc8
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,9 @@
|
|||
|
||||
# NeoGo binary path.
|
||||
NEOGO="${NEOGO:-docker exec -it main_chain neo-go}"
|
||||
# Launching neo-go this way is useful, when running the script not from
|
||||
# terminal, for instance, in jenkins job.
|
||||
NEOGO_NONINTERACTIVE="${NEOGO_NONINTERACTIVE:-docker exec main_chain neo-go}"
|
||||
|
||||
# Wallet files to change config value
|
||||
WALLET="${WALLET:-services/chain/node-wallet.json}"
|
||||
|
@ -18,7 +21,7 @@ PASSWD="one"
|
|||
ADDR=`cat ${WALLET} | jq -r .accounts[2].address`
|
||||
|
||||
# Fetch current epoch value
|
||||
EPOCH=`${NEOGO} contract testinvokefunction -r \
|
||||
EPOCH=`${NEOGO_NONINTERACTIVE} contract testinvokefunction -r \
|
||||
http://morph_chain.${LOCAL_DOMAIN}:30333 \
|
||||
${NEOFS_IR_CONTRACTS_NETMAP} \
|
||||
epoch | grep 'value' | awk -F'"' '{ print $4 }'`
|
||||
|
|
Loading…
Reference in a new issue