Show More
@@ -18,10 +18,10 b' Test raw style of hgweb' | |||||
18 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid |
|
18 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid | |
19 |
|
19 | |||
20 | $ cat hg.pid >> $DAEMON_PIDS |
|
20 | $ cat hg.pid >> $DAEMON_PIDS | |
21 |
$ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
21 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt | |
22 | $ sleep 5 |
|
22 | ||
23 | $ kill `cat hg.pid` |
|
23 | $ while kill `cat hg.pid` 2>/dev/null; do true; done | |
24 | $ sleep 1 # wait for server to scream and die |
|
24 | ||
25 | $ cat getoutput.txt |
|
25 | $ cat getoutput.txt | |
26 | 200 Script output follows |
|
26 | 200 Script output follows | |
27 | content-type: application/binary |
|
27 | content-type: application/binary | |
@@ -40,10 +40,9 b' Test raw style of hgweb' | |||||
40 | > --config web.guessmime=True |
|
40 | > --config web.guessmime=True | |
41 |
|
41 | |||
42 | $ cat hg.pid >> $DAEMON_PIDS |
|
42 | $ cat hg.pid >> $DAEMON_PIDS | |
43 |
$ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
43 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?f=a23bf1310f6e;file=sub/some%20%22text%22.txt;style=raw' content-type content-length content-disposition) >getoutput.txt | |
44 | $ sleep 5 |
|
44 | $ while kill `cat hg.pid` 2>/dev/null; do true; done | |
45 | $ kill `cat hg.pid` |
|
45 | ||
46 | $ sleep 1 # wait for server to scream and die |
|
|||
47 | $ cat getoutput.txt |
|
46 | $ cat getoutput.txt | |
48 | 200 Script output follows |
|
47 | 200 Script output follows | |
49 | content-type: text/plain; charset="ascii" |
|
48 | content-type: text/plain; charset="ascii" |
General Comments 0
You need to be logged in to leave comments.
Login now