From bdea10ff0ecc6aeac98761888ce080b66c4f88e6 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sun, 15 May 2016 21:19:44 +0200 Subject: [PATCH] Make if condition in sharness lib silent License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/lib/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sharness/lib/test-lib.sh b/test/sharness/lib/test-lib.sh index 76b1a94d6..db242146b 100644 --- a/test/sharness/lib/test-lib.sh +++ b/test/sharness/lib/test-lib.sh @@ -194,7 +194,7 @@ test_set_address_vars() { 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" ' ipfs swarm addrs local > addrs_out && SWARM_MADDR=$(grep "127.0.0.1" addrs_out) &&