comparison tests/test-hgweb @ 6368:2c370f08c486

hgweb: better error messages
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sun, 23 Mar 2008 23:08:18 +0100
parents b8009718a211
children 6cb522c5d56a
comparison
equal deleted inserted replaced
6367:51984a2413f2 6368:2c370f08c486
25 echo % should give a 400 - bad command 25 echo % should give a 400 - bad command
26 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/' 26 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/'
27 27
28 echo % should give a 404 - file does not exist 28 echo % should give a 404 - file does not exist
29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' 29 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw'
30 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork'
31 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw'
30 32
31 echo % stop and restart 33 echo % stop and restart
32 kill `cat hg.pid` 34 kill `cat hg.pid`
33 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log 35 hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
34 cat hg.pid >> $DAEMON_PIDS 36 cat hg.pid >> $DAEMON_PIDS