Skip to content

Commit 2ae4944

Browse files
praritgitster
authored andcommitted
t6006: use test-lib.sh definitions
Use name and email definitions from test-lib.sh. Signed-off-by: Prarit Bhargava <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 566a143 commit 2ae4944

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

t/t6006-rev-list-format.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,29 @@ EOF
111111
# we don't test relative here
112112
test_format author %an%n%ae%n%ad%n%aD%n%at <<EOF
113113
commit $head2
114-
A U Thor
115-
114+
$GIT_AUTHOR_NAME
115+
$GIT_AUTHOR_EMAIL
116116
Thu Apr 7 15:13:13 2005 -0700
117117
Thu, 7 Apr 2005 15:13:13 -0700
118118
1112911993
119119
commit $head1
120-
A U Thor
121-
120+
$GIT_AUTHOR_NAME
121+
$GIT_AUTHOR_EMAIL
122122
Thu Apr 7 15:13:13 2005 -0700
123123
Thu, 7 Apr 2005 15:13:13 -0700
124124
1112911993
125125
EOF
126126

127127
test_format committer %cn%n%ce%n%cd%n%cD%n%ct <<EOF
128128
commit $head2
129-
C O Mitter
130-
129+
$GIT_COMMITTER_NAME
130+
$GIT_COMMITTER_EMAIL
131131
Thu Apr 7 15:13:13 2005 -0700
132132
Thu, 7 Apr 2005 15:13:13 -0700
133133
1112911993
134134
commit $head1
135-
C O Mitter
136-
135+
$GIT_COMMITTER_NAME
136+
$GIT_COMMITTER_EMAIL
137137
Thu Apr 7 15:13:13 2005 -0700
138138
Thu, 7 Apr 2005 15:13:13 -0700
139139
1112911993
@@ -410,7 +410,7 @@ test_expect_success 'empty email' '
410410
test_tick &&
411411
C=$(GIT_AUTHOR_EMAIL= git commit-tree HEAD^{tree} </dev/null) &&
412412
A=$(git show --pretty=format:%an,%ae,%ad%n -s $C) &&
413-
verbose test "$A" = "A U Thor,,Thu Apr 7 15:14:13 2005 -0700"
413+
verbose test "$A" = "$GIT_AUTHOR_NAME,,Thu Apr 7 15:14:13 2005 -0700"
414414
'
415415

416416
test_expect_success 'del LF before empty (1)' '
@@ -495,7 +495,7 @@ test_expect_success '%gd shortens ref name' '
495495
'
496496

497497
test_expect_success 'reflog identity' '
498-
echo "C O Mitter:[email protected]" >expect &&
498+
echo "$GIT_COMMITTER_NAME:$GIT_COMMITTER_EMAIL" >expect &&
499499
git log -g -1 --format="%gn:%ge" >actual &&
500500
test_cmp expect actual
501501
'

0 commit comments

Comments
 (0)