Skip to content

Commit 9a8cb13

Browse files
committed
--config-file test in sharness/t0021-config.sh
1 parent da46e9b commit 9a8cb13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/sharness/t0021-config.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ test_config_cmd() {
110110
grep "\"beep3\": false," actual
111111
'
112112

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+
113120
test_expect_success "setup for config replace test" '
114121
cp "$IPFS_PATH/config" newconfig.json &&
115122
sed -i"~" -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&

0 commit comments

Comments
 (0)