]> git.ipfire.org Git - thirdparty/git.git/commit
t9700: loosen ident timezone regex
authorJeff King <peff@peff.net>
Thu, 9 Jul 2020 20:35:50 +0000 (16:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jul 2020 18:56:01 +0000 (11:56 -0700)
commitfccf41e35aed528b7257a4e966437ccd92672bb1
tree7f7d84804d4c93e1e4622f322d235467788e7f48
parentf421e029aef755c6db4f8662e2b6f01c95700959
t9700: loosen ident timezone regex

A few of the perl tests in t9700 ask for the author and committer ident,
and then make sure we get something sensible. For the timestamp portion,
we just match [0-9]+, because the actual value will depend on when the
test is run. However, we do require that the timezone be "+0000". This
works reliably because we set $TZ in test-lib.sh. But in preparation for
changing the default timezone, let's be a bit more flexible. We don't
actually care about the exact value here, just that we were able to get
a sensible output from the perl module's access methods.

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