Skip to content

Commit d87ec81

Browse files
tboegigitster
authored andcommitted
t9501: do not use export X=Y
The shell syntax "export X=Y" is not understood by all shells. Signed-off-by: Torsten Bögershausen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 56291c1 commit d87ec81

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

t/t9501-gitweb-standalone-http-status.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,17 @@ test_expect_success DATE_PARSER 'modification: feed last-modified' '
130130
test_debug 'cat gitweb.headers'
131131

132132
test_expect_success DATE_PARSER 'modification: feed if-modified-since (modified)' '
133-
export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
133+
HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
134+
export HTTP_IF_MODIFIED_SINCE &&
134135
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
135136
gitweb_run "p=.git;a=atom;h=master" &&
136137
grep "Status: 200 OK" gitweb.headers
137138
'
138139
test_debug 'cat gitweb.headers'
139140

140141
test_expect_success DATE_PARSER 'modification: feed if-modified-since (unmodified)' '
141-
export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
142+
HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
143+
export HTTP_IF_MODIFIED_SINCE &&
142144
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
143145
gitweb_run "p=.git;a=atom;h=master" &&
144146
grep "Status: 304 Not Modified" gitweb.headers
@@ -153,15 +155,17 @@ test_expect_success DATE_PARSER 'modification: snapshot last-modified' '
153155
test_debug 'cat gitweb.headers'
154156

155157
test_expect_success DATE_PARSER 'modification: snapshot if-modified-since (modified)' '
156-
export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
158+
HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
159+
export HTTP_IF_MODIFIED_SINCE &&
157160
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
158161
gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
159162
grep "Status: 200 OK" gitweb.headers
160163
'
161164
test_debug 'cat gitweb.headers'
162165

163166
test_expect_success DATE_PARSER 'modification: snapshot if-modified-since (unmodified)' '
164-
export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
167+
HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
168+
export HTTP_IF_MODIFIED_SINCE &&
165169
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
166170
gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
167171
grep "Status: 304 Not Modified" gitweb.headers
@@ -170,7 +174,8 @@ test_debug 'cat gitweb.headers'
170174

171175
test_expect_success DATE_PARSER 'modification: tree snapshot' '
172176
ID=`git rev-parse --verify HEAD^{tree}` &&
173-
export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
177+
HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
178+
export HTTP_IF_MODIFIED_SINCE &&
174179
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
175180
gitweb_run "p=.git;a=snapshot;h=$ID;sf=tgz" &&
176181
grep "Status: 200 OK" gitweb.headers &&

0 commit comments

Comments
 (0)