@cryptotaxi247 / kubo / commits / e172ad23c

--config-file test in sharness/t0021-config.sh

Lucas Molas committed Mar 24, 2022 at 22:03 UTC e172ad23c2ada28eb48e34014e3ff3ce110e109d
1 file changed +7
test/sharness/t0021-config.sh
+7
@@ -110,6 +110,13 @@ test_config_cmd() {
110 grep "\"beep3\": false," actual
111 '
112
113 + test_expect_success "'ipfs config show --config-file' works" '
114 + mv "$IPFS_PATH/config" "$IPFS_PATH/config-moved" &&
115 + ipfs config --config-file "$IPFS_PATH/config-moved" show >moved &&
116 + test_cmp moved actual &&
117 + mv "$IPFS_PATH/config-moved" "$IPFS_PATH/config"
118 + '
119 +
120 test_expect_success "setup for config replace test" '
121 cp "$IPFS_PATH/config" newconfig.json &&
122 sed -i"~" -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&