mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +08:00
Make if condition in sharness lib silent
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
@ -194,7 +194,7 @@ test_set_address_vars() {
|
|||||||
GWAY_PORT=$(port_from_maddr $GWAY_MADDR)
|
GWAY_PORT=$(port_from_maddr $GWAY_MADDR)
|
||||||
'
|
'
|
||||||
|
|
||||||
if ipfs swarm addrs local; then
|
if ipfs swarm addrs local >/dev/null 2>&1; then
|
||||||
test_expect_success "set swarm address vars" '
|
test_expect_success "set swarm address vars" '
|
||||||
ipfs swarm addrs local > addrs_out &&
|
ipfs swarm addrs local > addrs_out &&
|
||||||
SWARM_MADDR=$(grep "127.0.0.1" addrs_out) &&
|
SWARM_MADDR=$(grep "127.0.0.1" addrs_out) &&
|
||||||
|
Reference in New Issue
Block a user