Skip to content

Commit

Permalink
Remove MAKE_SKIP_PATH test
Browse files Browse the repository at this point in the history
  • Loading branch information
guseggert committed Aug 2, 2021
1 parent f0ae6e3 commit 98d2739
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
# use the ipfs tool to test against

# add current directory to path, for ipfs tool.
if test "$MAKE_SKIP_PATH" != "1"; then
BIN=$(cd .. && echo `pwd`/bin)
BIN2=$(cd ../.. && echo `pwd`/cmd/ipfs)
PATH=${BIN2}:${BIN}:${PATH}

# assert the `ipfs` we're using is the right one.
if test `which ipfs` != ${BIN2}/ipfs; then
echo >&2 "Cannot find the tests' local ipfs tool."
echo >&2 "Please check test and ipfs tool installation."
exit 1
fi
BIN=$(cd .. && pwd)/bin
BIN2=$(cd ../.. && pwd)/cmd/ipfs
PATH=${BIN2}:${BIN}:${PATH}

# assert the `ipfs` we're using is the right one.
if test "$(which ipfs)" != "${BIN2}/ipfs"; then
echo >&2 "Cannot find the tests' local ipfs tool."
echo >&2 "Please check test and ipfs tool installation."
exit 1
fi

# set sharness verbosity. we set the env var directly as
Expand Down

0 comments on commit 98d2739

Please sign in to comment.