mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
refactor: rename IPFS_DIR -> IPFS_PATH
closes #394 https://github.com/jbenet/go-ipfs/issues/394
This commit is contained in:
@ -32,7 +32,7 @@ const (
|
||||
// DefaultConfigFile is the filename of the configuration file
|
||||
DefaultConfigFile = "config"
|
||||
// EnvDir is the environment variable used to change the path root.
|
||||
EnvDir = "IPFS_DIR"
|
||||
EnvDir = "IPFS_PATH"
|
||||
)
|
||||
|
||||
// PathRoot returns the default configuration root directory
|
||||
|
@ -67,7 +67,7 @@ test_wait_output_n_lines_60_sec() {
|
||||
test_init_ipfs() {
|
||||
|
||||
test_expect_success "ipfs init succeeds" '
|
||||
export IPFS_DIR="$(pwd)/.go-ipfs" &&
|
||||
export IPFS_PATH="$(pwd)/.go-ipfs" &&
|
||||
ipfs init -b=1024 > /dev/null
|
||||
'
|
||||
|
||||
|
@ -9,7 +9,7 @@ test_description="Test init command"
|
||||
. lib/test-lib.sh
|
||||
|
||||
test_expect_success "ipfs init succeeds" '
|
||||
export IPFS_DIR="$(pwd)/.go-ipfs" &&
|
||||
export IPFS_PATH="$(pwd)/.go-ipfs" &&
|
||||
ipfs init >actual_init
|
||||
'
|
||||
|
||||
@ -35,7 +35,7 @@ test_expect_success "ipfs peer id looks good" '
|
||||
|
||||
test_expect_success "ipfs init output looks good" '
|
||||
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
|
||||
echo "initializing ipfs node at $IPFS_DIR" >expected &&
|
||||
echo "initializing ipfs node at $IPFS_PATH" >expected &&
|
||||
echo "generating key pair...done" >>expected &&
|
||||
echo "peer identity: $PEERID" >>expected &&
|
||||
printf "\\n%s\\n" "to get started, enter: ipfs cat $STARTHASH" >>expected &&
|
||||
|
@ -13,7 +13,7 @@ test_description="Test daemon command"
|
||||
|
||||
# NOTE: this should remove bootstrap peers (needs a flag)
|
||||
test_expect_success "ipfs daemon --init launches" '
|
||||
export IPFS_DIR="$(pwd)/.go-ipfs" &&
|
||||
export IPFS_PATH="$(pwd)/.go-ipfs" &&
|
||||
ipfs daemon --init 2>&1 >actual_init &
|
||||
'
|
||||
|
||||
@ -35,7 +35,7 @@ test_expect_success "ipfs peer id looks good" '
|
||||
# note this is almost the same as t0020-init.sh "ipfs init output looks good"
|
||||
test_expect_success "ipfs daemon output looks good" '
|
||||
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
|
||||
echo "initializing ipfs node at $IPFS_DIR" >expected &&
|
||||
echo "initializing ipfs node at $IPFS_PATH" >expected &&
|
||||
echo "generating key pair...done" >>expected &&
|
||||
echo "peer identity: $PEERID" >>expected &&
|
||||
echo "\nto get started, enter: ipfs cat $STARTHASH" >>expected &&
|
||||
|
Reference in New Issue
Block a user