tests/test-hgwebdir
changeset 8245 0eade101f762
parent 8217 d895158fe8af
child 9184 f6eb03027411
--- a/tests/test-hgwebdir	Tue Apr 28 18:14:49 2009 +0200
+++ b/tests/test-hgwebdir	Tue Apr 28 17:17:54 2009 +0200
@@ -65,11 +65,11 @@
 echo % should succeed, slashy names
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=paper' \
-	| sed -r "s/[0-9]+ seconds? ago/seconds ago/"
+	| sed "s/[0-9]\{1,\} seconds\{0,1\} ago/seconds ago/"
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw'
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=paper' \
-	| sed -r "s/[0-9]+ seconds? ago/seconds ago/"
+	| sed "s/[0-9]\{1,\} seconds\{0,1\} ago/seconds ago/"
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \
 	| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \