]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0001-init.sh
t0001: fix GIT_* environment variable check under --valgrind
authorJohannes Sixt <j6t@kdbg.org>
Thu, 3 Mar 2016 06:55:17 +0000 (07:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Mar 2016 16:55:13 +0000 (08:55 -0800)
commitf3858f8edcb91054cdc0b6f086ec34109582f67f
tree63ccfa75387a0f927dcdc24a8dae9b6b731a329b
parent8384c139cb9409fb3cf5ef70afff263917581258
t0001: fix GIT_* environment variable check under --valgrind

When a test case is run without --valgrind, the wrap-for-bin.sh
helper script inserts the environment variable GIT_TEXTDOMAINDIR, but
when run with --valgrind, the variable is missing. A recently
introduced test case expects the presence of the variable, though, and
fails under --valgrind.

Rewrite the test case to strip conditially defined environment variables
from both expected and actual output.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0001-init.sh