From e172ad23c2ada28eb48e34014e3ff3ce110e109d Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Thu, 24 Mar 2022 22:03:34 -0300 Subject: [PATCH] --config-file test in sharness/t0021-config.sh --- test/sharness/t0021-config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sharness/t0021-config.sh b/test/sharness/t0021-config.sh index ee0e81988..5264908c7 100755 --- a/test/sharness/t0021-config.sh +++ b/test/sharness/t0021-config.sh @@ -110,6 +110,13 @@ test_config_cmd() { grep "\"beep3\": false," actual ' + test_expect_success "'ipfs config show --config-file' works" ' + mv "$IPFS_PATH/config" "$IPFS_PATH/config-moved" && + ipfs config --config-file "$IPFS_PATH/config-moved" show >moved && + test_cmp moved actual && + mv "$IPFS_PATH/config-moved" "$IPFS_PATH/config" + ' + test_expect_success "setup for config replace test" ' cp "$IPFS_PATH/config" newconfig.json && sed -i"~" -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&