Skip to content

Commit

Permalink
refactor: rename IPFS_DIR -> IPFS_PATH
Browse files Browse the repository at this point in the history
closes #394 #394
  • Loading branch information
Brian Tiger Chow committed Jan 19, 2015
1 parent d0e4cdf commit fddd2c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion repo/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'

Expand Down
4 changes: 2 additions & 2 deletions test/sharness/t0020-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'

Expand All @@ -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 &&
Expand Down
4 changes: 2 additions & 2 deletions test/sharness/t0060-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
'

Expand All @@ -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 &&
Expand Down

0 comments on commit fddd2c5

Please sign in to comment.