Code

t0021-conversion.sh: fix NoTerminatingSymbolAtEOF test
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 21 May 2011 21:25:06 +0000 (23:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2011 23:47:15 +0000 (16:47 -0700)
commitdd555d8bed255c7949620e6551ea5afd2213bae0
treed1eeeee66bc0d116d4f6db9739dc5f0252b8f250
parenta265a7f95e6e3ebd81df0c6813b17d61a5ab890a
t0021-conversion.sh: fix NoTerminatingSymbolAtEOF test

The last line of the test file "expanded-keywords" ended in a newline,
which is a valid terminator for ident.  Use printf instead of echo to omit
it and thus really test if a file that ends unexpectedly in the middle of
an ident tag is handled properly.

Also take the oppertunity to calculate the expected ID dynamically
instead of hardcoding it into the test script.  This should make future
changes easier.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021-conversion.sh