changeset 2547:d75c68b55af8

test-webraw: do not store hostname in test output
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 30 Jun 2006 22:04:02 -0700
parents 8cb894370514
children 0229ff95faec
files tests/test-webraw tests/test-webraw.out
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-webraw	Fri Jun 30 23:02:08 2006 +0200
+++ b/tests/test-webraw	Fri Jun 30 22:04:02 2006 -0700
@@ -17,4 +17,5 @@
 kill `cat hg.pid`
 sleep 1 # wait for server to scream and die
 cat getoutput.txt
-cat access.log error.log | sed 's/^\([^[]*\[\)[^]]*\(\].*\)$/\1date\2/g'
+cat access.log error.log | \
+  sed 's/^[^ ]*\( [^[]*\[\)[^]]*\(\].*\)$/host\1date\2/'
--- a/tests/test-webraw.out	Fri Jun 30 23:02:08 2006 +0200
+++ b/tests/test-webraw.out	Fri Jun 30 22:04:02 2006 -0700
@@ -7,4 +7,4 @@
 that will go inside the file and take a few lines.
 It is very boring to read, but computers don't
 care about things like that.
-localhost - - [date] "GET /?f=f165dc289438;file=sometext.txt;style=raw HTTP/1.1" 200 -
+host - - [date] "GET /?f=f165dc289438;file=sometext.txt;style=raw HTTP/1.1" 200 -