##// END OF EJS Templates
tests: ignore http tests that are known wontfix failures on python 2.4...
Mads Kiilerich -
r20384:c499fff7 default
parent child Browse files
Show More
@@ -248,6 +248,9 def has_pygments():
248 except ImportError:
248 except ImportError:
249 return False
249 return False
250
250
251 def has_python243():
252 return sys.version_info >= (2, 4, 3)
253
251 def has_outer_repo():
254 def has_outer_repo():
252 # failing for other reasons than 'no repo' imply that there is a repo
255 # failing for other reasons than 'no repo' imply that there is a repo
253 return not matchoutput('hg root 2>&1',
256 return not matchoutput('hg root 2>&1',
@@ -320,6 +323,7 checks = {
320 "p4": (has_p4, "Perforce server and client"),
323 "p4": (has_p4, "Perforce server and client"),
321 "pyflakes": (has_pyflakes, "Pyflakes python linter"),
324 "pyflakes": (has_pyflakes, "Pyflakes python linter"),
322 "pygments": (has_pygments, "Pygments source highlighting library"),
325 "pygments": (has_pygments, "Pygments source highlighting library"),
326 "python243": (has_python243, "python >= 2.4.3"),
323 "root": (has_root, "root permissions"),
327 "root": (has_root, "root permissions"),
324 "serve": (has_serve, "platform and python can manage 'hg serve -d'"),
328 "serve": (has_serve, "platform and python can manage 'hg serve -d'"),
325 "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"),
329 "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"),
@@ -163,6 +163,7 test http authentication
163 > getpass.getpass = newgetpass
163 > getpass.getpass = newgetpass
164 > EOF
164 > EOF
165
165
166 #if python243
166 $ hg id http://localhost:$HGPORT2/
167 $ hg id http://localhost:$HGPORT2/
167 abort: http authorization required for http://localhost:$HGPORT2/
168 abort: http authorization required for http://localhost:$HGPORT2/
168 [255]
169 [255]
@@ -176,6 +177,7 test http authentication
176 password: 5fed3813f7f5
177 password: 5fed3813f7f5
177 $ hg id http://user:pass@localhost:$HGPORT2/
178 $ hg id http://user:pass@localhost:$HGPORT2/
178 5fed3813f7f5
179 5fed3813f7f5
180 #endif
179 $ echo '[auth]' >> .hg/hgrc
181 $ echo '[auth]' >> .hg/hgrc
180 $ echo 'l.schemes=http' >> .hg/hgrc
182 $ echo 'l.schemes=http' >> .hg/hgrc
181 $ echo 'l.prefix=lo' >> .hg/hgrc
183 $ echo 'l.prefix=lo' >> .hg/hgrc
@@ -187,6 +189,7 test http authentication
187 5fed3813f7f5
189 5fed3813f7f5
188 $ hg id http://user@localhost:$HGPORT2/
190 $ hg id http://user@localhost:$HGPORT2/
189 5fed3813f7f5
191 5fed3813f7f5
192 #if python243
190 $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1
193 $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1
191 streaming all changes
194 streaming all changes
192 7 files to transfer, 916 bytes of data
195 7 files to transfer, 916 bytes of data
@@ -200,6 +203,7 test http authentication
200 $ hg id http://user:pass2@localhost:$HGPORT2/
203 $ hg id http://user:pass2@localhost:$HGPORT2/
201 abort: HTTP Error 403: no
204 abort: HTTP Error 403: no
202 [255]
205 [255]
206 #endif
203
207
204 $ cd ..
208 $ cd ..
205
209
General Comments 0
You need to be logged in to leave comments. Login now