Skip to content

Commit

Permalink
--config-file test in sharness/t0021-config.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
schomatis committed Mar 25, 2022
1 parent daa0402 commit ec9bcec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/sharness/t0021-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit ec9bcec

Please sign in to comment.