testlib: improve lazy prereq cache eval
commit9ffae555eaa15f8b4f2df4b5f16835bfbad10cbd
authorKyle J. McKay <mackyle@gmail.com>
Sun, 18 Dec 2016 10:55:10 +0000 (18 02:55 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 18 Dec 2016 10:55:10 +0000 (18 02:55 -0800)
tree8f3d63bd0ca8c565980b5595764262a708f9ae00
parent592b76d4e2320b4af19f3a0a7e62be69cd2f4ac2
testlib: improve lazy prereq cache eval

Make sure that when the lazy prereqs are evaluated at --cache
time that they see the same environment the tests will later
at non-cache time so they generate the correct results.

In particular, it's important to run inside an initialized Git
directory on the "root" (if --root was given) so that the
correct answers for filemode and case insensitive turn up.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/test-lib.sh