t5100-mailinfo: replace common path prefix with variable
commitee4d679f579b957a997830cbcd65741d9428d732
authorKevin Daudt <me@ikke.info>
Wed, 28 Sep 2016 19:52:31 +0000 (28 21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Sep 2016 20:16:59 +0000 (28 13:16 -0700)
tree578aabc4bcdd85e77aafdca3f744393c66a8df55
parent7c0304af62fcb777faac6eebd8c242d3de4f605d
t5100-mailinfo: replace common path prefix with variable

Many tests need to store data in a file, and repeat the same pattern to
refer to that path:

    "$TEST_DIRECTORY"/t5100/

Create a variable that contains this path, and use that instead.

While we're making this change, make sure the quotes are not just around
the variable, but around the entire string to not give the impression
we want shell splitting to affect the other variables.

Signed-off-by: Kevin Daudt <me@ikke.info>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5100-mailinfo.sh