test-lib: handle TEST_OUTPUT_DIRECTORY with spaces
commit925bdc928e3debdc6dbf28b5648711eb1c5583d3
authorJeff King <peff@peff.net>
Fri, 21 Oct 2016 10:42:10 +0000 (21 06:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 16:54:34 +0000 (21 09:54 -0700)
tree5e47eb34c6069985c08b7ecb036f80b4d50a4e7e
parent0b65a8dbdb38962e700ee16776a3042beb489060
test-lib: handle TEST_OUTPUT_DIRECTORY with spaces

We are careful in test_done to handle a results directory
with a space in it, but the "--tee" code path does not.
Doing:

  export TEST_OUTPUT_DIRECTORY='/tmp/path with spaces'
  ./t000-init.sh --tee

results in errors. Let's consistently double-quote our path
variables so that this works.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh