mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
--config-file test in sharness/t0021-config.sh
This commit is contained in:
parent
447462b801
commit
e172ad23c2
@ -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 &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user