Allow for MB/sec transfer rates in test-http
authorLee Cantey <lcantey@gmail.com>
Mon, 21 Aug 2006 16:33:43 -0700
changeset 2969 7827bc82ebc5
parent 2968 4cdb68d7eb92
child 2970 12d1475b48df
Allow for MB/sec transfer rates in test-http
tests/test-http
tests/test-http.out
--- a/tests/test-http
+++ b/tests/test-http
@@ -11,7 +11,7 @@ cat hg1.pid hg2.pid >> $DAEMON_PIDS
 
 echo % clone via stream
 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \
-  sed -e 's/[0-9][0-9.]*/XXX/g'
+  sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/.\(B\/sec\)/X\1/'
 hg verify -R copy
 
 echo % try to clone via stream, should use pull instead
--- a/tests/test-http.out
+++ b/tests/test-http.out
@@ -2,7 +2,7 @@ adding foo
 % clone via stream
 streaming all changes
 XXX files to transfer, XXX bytes of data
-transferred XXX bytes in XXX seconds (XXX KB/sec)
+transferred XXX bytes in XXX seconds (XXX XB/sec)
 XXX files updated, XXX files merged, XXX files removed, XXX files unresolved
 checking changesets
 checking manifests