diff options
author | Mark Allen <mrallen1@yahoo.com> | 2005-05-25 19:11:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 19:37:10 -0700 |
commit | 368da62598b30a521970866327ce493e34f7f590 (patch) | |
tree | 5bf62fbb926ae751c9320c1371f34499f45e027b /t/t0110-environment-names-old.sh | |
parent | bd1e17e245153fdc75feaaf5e556b922d98ca699 (diff) | |
download | git-368da62598b30a521970866327ce493e34f7f590.tar.gz git-368da62598b30a521970866327ce493e34f7f590.tar.xz |
[PATCH] Test case portability fix.
This is the remainder of testcase fix by Mark Allen to make them
work on his Darwin box. I was using "xargs -r" (GNU) where it
was not needed, sed -ne '/^\(author\|committer\)/s|>.*|>|p'
where some sed does not know what to do with '\|', and also
"cmp - file" to compare standard input with a file, which his
cmp does not support.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 't/t0110-environment-names-old.sh')
-rwxr-xr-x | t/t0110-environment-names-old.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t0110-environment-names-old.sh b/t/t0110-environment-names-old.sh index 9389796f8..c548b9b49 100755 --- a/t/t0110-environment-names-old.sh +++ b/t/t0110-environment-names-old.sh @@ -86,8 +86,7 @@ committer A U Thor <author@example.xz> EOF test_expect_success \ 'verify old AUTHOR variables were used correctly in commit' \ - 'sed -ne '\''/^\(author\|committer\)/s|>.*|>|p'\'' current | - cmp - expected' + 'sed -ne '\''/^\(author\)/s|>.*|>|p'\'' -e'\''/^\(committer\)/s|>.*|>|p'\''\ current > out && cmp out expected' unset GIT_DIR test_expect_success \ @@ -128,7 +127,6 @@ committer R O Htua <rohtua@example.xz> EOF test_expect_success \ 'verify new AUTHOR variables were used correctly in commit.' \ - 'sed -ne '\''/^\(author\|committer\)/s|>.*|>|p'\'' current | - cmp - expected' + 'sed -ne '\''/^\(author\)/s|>.*|>|p'\'' -e'\''/^\(committer\)/s|>.*|>|p'\''\ current > out && cmp out expected' test_done |