##// END OF EJS Templates
tests: fix shutdown race in test-hgweb-raw
Matt Mackall -
r16298:0eefd118 stable
parent child Browse files
Show More
@@ -18,10 +18,10 b' Test raw style of hgweb'
18 18 $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid
19 19
20 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 &
22 $ sleep 5
23 $ kill `cat hg.pid`
24 $ sleep 1 # wait for server to scream and die
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
23 $ while kill `cat hg.pid` 2>/dev/null; do true; done
24
25 25 $ cat getoutput.txt
26 26 200 Script output follows
27 27 content-type: application/binary
@@ -40,10 +40,9 b' Test raw style of hgweb'
40 40 > --config web.guessmime=True
41 41
42 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 &
44 $ sleep 5
45 $ kill `cat hg.pid`
46 $ sleep 1 # wait for server to scream and die
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 $ while kill `cat hg.pid` 2>/dev/null; do true; done
45
47 46 $ cat getoutput.txt
48 47 200 Script output follows
49 48 content-type: text/plain; charset="ascii"
General Comments 0
You need to be logged in to leave comments. Login now