diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-25 02:21:18 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-25 02:21:18 (GMT) |
commit | 2bf3501150145d1f05678c20ab8e8d66f849851f (patch) | |
tree | 9b42d85557424e9c0836b4c47ea9d8b86ff2dc1d /t | |
parent | 677f32c79f30cafc4a3270118d5cb3736d44be26 (diff) | |
parent | 97669eed109f5dea7dffe771d8f6aba4acf84b27 (diff) | |
download | git-2bf3501150145d1f05678c20ab8e8d66f849851f.zip git-2bf3501150145d1f05678c20ab8e8d66f849851f.tar.gz git-2bf3501150145d1f05678c20ab8e8d66f849851f.tar.bz2 |
Merge branch 'ml/avoid-using-grep-on-crlf-files'
On systems that understand a CRLF as a line ending, tests in this
script that worked on files with CRLF line endings using "grep" to
extract matching lines may lose the CR at the end of lines that
match, causing the actual output not to match the expected output.
* ml/avoid-using-grep-on-crlf-files:
test-lib.sh - define and use GREP_STRIPS_CR
Diffstat (limited to 't')
-rwxr-xr-x | t/t3032-merge-recursive-options.sh | 2 | ||||
-rwxr-xr-x | t/t5560-http-backend-noserver.sh | 2 | ||||
-rw-r--r-- | t/test-lib.sh | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/t/t3032-merge-recursive-options.sh b/t/t3032-merge-recursive-options.sh index 2b17311..5fd7bbb 100755 --- a/t/t3032-merge-recursive-options.sh +++ b/t/t3032-merge-recursive-options.sh @@ -14,7 +14,7 @@ test_description='merge-recursive options . ./test-lib.sh test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b -test_have_prereq MINGW && export GREP_OPTIONS=-U +test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U test_expect_success 'setup' ' conflict_hunks () { diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh index ef98d95..9be9ae3 100755 --- a/t/t5560-http-backend-noserver.sh +++ b/t/t5560-http-backend-noserver.sh @@ -5,7 +5,7 @@ test_description='test git-http-backend-noserver' HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY" -test_have_prereq MINGW && export GREP_OPTIONS=-U +test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U run_backend() { echo "$2" | diff --git a/t/test-lib.sh b/t/test-lib.sh index b4902831..1aa27bd 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -825,6 +825,7 @@ case $(uname -s) in test_set_prereq MINGW test_set_prereq NOT_CYGWIN test_set_prereq SED_STRIPS_CR + test_set_prereq GREP_STRIPS_CR ;; *CYGWIN*) test_set_prereq POSIXPERM @@ -832,6 +833,7 @@ case $(uname -s) in test_set_prereq NOT_MINGW test_set_prereq CYGWIN test_set_prereq SED_STRIPS_CR + test_set_prereq GREP_STRIPS_CR ;; *) test_set_prereq POSIXPERM |