Mercurial > hg
comparison tests/test-bad-pull @ 7903:490e40816cbd
tests: strip o/s-dependent error messages from some http tests
author | John Coomes <john.coomes@sun.com> |
---|---|
date | Fri, 27 Feb 2009 17:28:26 -0800 |
parents | e3a0c092b4e2 |
children | 3e6206967570 |
comparison
equal
deleted
inserted
replaced
7902:afddc32b2b3f | 7903:490e40816cbd |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 hg clone http://localhost:$HGPORT/ copy | 3 { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ |
4 echo $? | 4 sed 's/error:.*/error:/' |
5 test -d copy || echo copy: No such file or directory | 5 test -d copy || echo copy: No such file or directory |
6 | 6 |
7 cat > dumb.py <<EOF | 7 cat > dumb.py <<EOF |
8 import BaseHTTPServer, SimpleHTTPServer, os, signal | 8 import BaseHTTPServer, SimpleHTTPServer, os, signal |
9 | 9 |
21 echo $! >> $DAEMON_PIDS | 21 echo $! >> $DAEMON_PIDS |
22 | 22 |
23 # give the server some time to start running | 23 # give the server some time to start running |
24 sleep 1 | 24 sleep 1 |
25 | 25 |
26 http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ | 26 { http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1; echo $?; } | \ |
27 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' | 27 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' |
28 echo $? | |
29 | 28 |
30 kill $! | 29 kill $! |