comparison tests/test-push-http @ 5386:8051549afb32

Fix accidentally broken test.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 05 Oct 2007 12:28:18 -0700
parents e3a0c092b4e2
children
comparison
equal deleted inserted replaced
5385:caadfbc439c6 5386:8051549afb32
16 cd ../test 16 cd ../test
17 17
18 echo % expect ssl error 18 echo % expect ssl error
19 hg serve -p $HGPORT -d --pid-file=hg.pid 19 hg serve -p $HGPORT -d --pid-file=hg.pid
20 cat hg.pid >> $DAEMON_PIDS 20 cat hg.pid >> $DAEMON_PIDS
21 hg --cwd ../test2 push http://localhost:$HGPORT/ 21 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
22 kill `cat hg.pid` 22 kill `cat hg.pid`
23 23
24 echo % expect authorization error 24 echo % expect authorization error
25 echo '[web]' > .hg/hgrc 25 echo '[web]' > .hg/hgrc
26 echo 'push_ssl = false' >> .hg/hgrc 26 echo 'push_ssl = false' >> .hg/hgrc
27 hg serve -p $HGPORT -d --pid-file=hg.pid 27 hg serve -p $HGPORT -d --pid-file=hg.pid
28 cat hg.pid >> $DAEMON_PIDS 28 cat hg.pid >> $DAEMON_PIDS
29 hg --cwd ../test2 push http://localhost:$HGPORT/ 29 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
30 kill `cat hg.pid` 30 kill `cat hg.pid`
31 31
32 echo % expect authorization error: must have authorized user 32 echo % expect authorization error: must have authorized user
33 echo 'allow_push = unperson' >> .hg/hgrc 33 echo 'allow_push = unperson' >> .hg/hgrc
34 hg serve -p $HGPORT -d --pid-file=hg.pid 34 hg serve -p $HGPORT -d --pid-file=hg.pid
35 cat hg.pid >> $DAEMON_PIDS 35 cat hg.pid >> $DAEMON_PIDS
36 hg --cwd ../test2 push http://localhost:$HGPORT/ 36 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
37 kill `cat hg.pid` 37 kill `cat hg.pid`
38 38
39 echo % expect success 39 echo % expect success
40 echo 'allow_push = *' >> .hg/hgrc 40 echo 'allow_push = *' >> .hg/hgrc
41 echo '[hooks]' >> .hg/hgrc 41 echo '[hooks]' >> .hg/hgrc
42 echo 'changegroup = python ../printenv.py changegroup 0 ../urls' >> .hg/hgrc 42 echo 'changegroup = python ../printenv.py changegroup 0 ../urls' >> .hg/hgrc
43 hg serve -p $HGPORT -d --pid-file=hg.pid 43 hg serve -p $HGPORT -d --pid-file=hg.pid
44 cat hg.pid >> $DAEMON_PIDS 44 cat hg.pid >> $DAEMON_PIDS
45 hg --cwd ../test2 push http://localhost:$HGPORT/ 45 hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
46 kill `cat hg.pid` 46 kill `cat hg.pid`
47 hg rollback 47 hg rollback
48 48
49 cat ../urls 49 cat ../urls
50 50