@cryptotaxi247 / kubo / commits / d06e7e342

sharness: set verbosity from env

Juan Batiz-Benet committed Jan 4, 2015 at 20:39 UTC d06e7e342d3d7b6970e54bdf668f94754d456236
1 file changed +5
test/lib/test-lib.sh
+5
@@ -11,6 +11,11 @@
11 # add current directory to path, for ipfs tool.
12 PATH=$(pwd)/bin:${PATH}
13
14 +# set sharness verbosity. we set the env var directly as
15 +# it's too late to pass in --verbose, and --verbose is harder
16 +# to pass through in some cases.
17 +test "$TEST_VERBOSE" = 1 && verbose=t
18 +
19 # assert the `ipfs` we're using is the right one.
20 if test `which ipfs` != $(pwd)/bin/ipfs; then
21 echo >&2 "Cannot find the tests' local ipfs tool."