Mercurial > hg
comparison tests/test-highlight @ 7544:c5e37dc38a52
test-hgweb-*: replace "XX years ago" by a fixed string in get-with-headers.py
Note that other sed replacement commands are also filtering get-with-headers.py,
but they seem to be more test specific, hence not handled here.
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Thu, 25 Dec 2008 17:49:08 +0100 |
parents | db7557359636 |
children | 03007ad08027 |
comparison
equal
deleted
inserted
replaced
7532:45b79d3e393e | 7544:c5e37dc38a52 |
---|---|
22 hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log | 22 hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
23 cat hg.pid >> $DAEMON_PIDS | 23 cat hg.pid >> $DAEMON_PIDS |
24 | 24 |
25 echo % hgweb filerevision, html | 25 echo % hgweb filerevision, html |
26 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/get-with-headers.py') \ | 26 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/get-with-headers.py') \ |
27 | sed "s/[0-9]* years ago/long ago/g" | sed "s/class=\"k\"/class=\"kn\"/g" | 27 | sed "s/class=\"k\"/class=\"kn\"/g" |
28 | 28 |
29 echo % hgweb filerevision, html | 29 echo % hgweb filerevision, html |
30 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/isolatin') \ | 30 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/isolatin') \ |
31 | sed "s/[0-9]* years ago/long ago/g" | sed "s/class=\"k\"/class=\"kn\"/g" | 31 | sed "s/class=\"k\"/class=\"kn\"/g" |
32 | 32 |
33 echo % hgweb fileannotate, html | 33 echo % hgweb fileannotate, html |
34 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/get-with-headers.py') \ | 34 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/get-with-headers.py') \ |
35 | sed "s/[0-9]* years ago/long ago/g" | sed "s/class=\"k\"/class=\"kn\"/g" | 35 | sed "s/class=\"k\"/class=\"kn\"/g" |
36 | 36 |
37 echo % hgweb fileannotate, raw | 37 echo % hgweb fileannotate, raw |
38 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/get-with-headers.py?style=raw') \ | 38 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/get-with-headers.py?style=raw') \ |
39 | sed "s/test@//" > a | 39 | sed "s/test@//" > a |
40 | 40 |