提交 7ce3c795 作者: Juan Batiz-Benet

sharness/lib: fixing gateway addr check

seems that the previous way isnt liked by all platforms
上级 f5f5700d
......@@ -142,16 +142,18 @@ test_init_ipfs() {
}
test_config_ipfs_gateway_readonly() {
if test "$1" == ""; then
echo "must call with an address, for example:"
echo 'test_config_ipfs_gateway_readonly "/ip4/0.0.0.0/tcp/5002"'
return 1 # todo: find a better way to exit here.
fi
GWAY_ADDR=$1
test_expect_success "prepare config -- gateway address" '
test "$GWAY_ADDR" != "" &&
test_config_set "Addresses.Gateway" "$GWAY_ADDR"
'
# tell the user what's going on if they messed up the call.
if test "$#" = 0; then
echo "# Error: must call with an address, for example:"
echo '# test_config_ipfs_gateway_readonly "/ip4/0.0.0.0/tcp/5002"'
echo '#'
fi
}
test_config_ipfs_gateway_writable() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论