sapling/tests/latin-1-encoding
David M. Carr 04a92f210c tests: use fn_git_commit in test-encoding.t
In f32e473ff520, the "commit" function was extracted into a testutil for re-use.
However, test-encoding.t was skipped over in that changeset, as I was seeing
unexplained test failures.  Since those test failures have now been explained
(and fixed), this changeset performs the same extraction on test-encoding.t as
was done on all the other tests.

The version of fn_git_commit that was used in testutil redirected all output
(including errors) to /dev/null, which didn't match the expectations of this
test.  The test utility functions for commit/tag now no longer throw away error
output, instead leaving it to individual tests to decide if error output should
be ignored.
2012-11-03 22:36:13 -04:00

19 lines
401 B
Plaintext

# -*- coding: latin-1 -*-
# this file contains some latin-1 messages for test-encoding
GIT_AUTHOR_NAME='tést èncödîng'; export GIT_AUTHOR_NAME
echo beta > beta
git add beta
fn_git_commit -m 'add beta'
echo gamma > gamma
git add gamma
fn_git_commit -m 'add gämmâ'
# test the commit encoding field
git config i18n.commitencoding latin-1
echo delta > delta
git add delta
fn_git_commit -m 'add déltà'