@cryptotaxi247 / kubo / commits / 98d2739f4

Remove MAKE_SKIP_PATH test

Gus Eggert committed Aug 2, 2021 at 14:29 UTC 98d2739f45f9ed6f2d4a3f12d63ef0aee5e814ba
1 file changed +9 -11
test/sharness/lib/test-lib.sh
+9 -11
@@ -9,17 +9,15 @@
9 # use the ipfs tool to test against
10
11 # add current directory to path, for ipfs tool.
12 -if test "$MAKE_SKIP_PATH" != "1"; then
13 - BIN=$(cd .. && echo `pwd`/bin)
14 - BIN2=$(cd ../.. && echo `pwd`/cmd/ipfs)
15 - PATH=${BIN2}:${BIN}:${PATH}
16 -
17 - # assert the `ipfs` we're using is the right one.
18 - if test `which ipfs` != ${BIN2}/ipfs; then
19 - echo >&2 "Cannot find the tests' local ipfs tool."
20 - echo >&2 "Please check test and ipfs tool installation."
21 - exit 1
22 - fi
12 +BIN=$(cd .. && pwd)/bin
13 +BIN2=$(cd ../.. && pwd)/cmd/ipfs
14 +PATH=${BIN2}:${BIN}:${PATH}
15 +
16 +# assert the `ipfs` we're using is the right one.
17 +if test "$(which ipfs)" != "${BIN2}/ipfs"; then
18 + echo >&2 "Cannot find the tests' local ipfs tool."
19 + echo >&2 "Please check test and ipfs tool installation."
20 + exit 1
21 fi
22
23 # set sharness verbosity. we set the env var directly as