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

This commit is contained in:
Lucas Molas 2022-03-24 22:03:34 -03:00
parent 447462b801
commit e172ad23c2

View File

@ -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 &&