changeset 19942:2c886dedd902 stable

tests: move generaldelta test to inline python (issue4064)
author Matt Mackall <mpm@selenic.com>
date Mon, 21 Oct 2013 10:50:58 -0700
parents 2bf99bc5077a
children 4de116871044
files tests/test-generaldelta.t
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-generaldelta.t	Mon Oct 21 10:26:38 2013 -0700
+++ b/tests/test-generaldelta.t	Mon Oct 21 10:50:58 2013 -0700
@@ -15,9 +15,10 @@
   >   hg up -q -r 0
   >   hg pull . -q -r $r -R ../gdrepo
   > done
+
   $ cd ..
-  $ regsize=`du -s -b repo/.hg/store/00manifest.i | cut -f 1`
-  $ gdsize=`du -s -b gdrepo/.hg/store/00manifest.i | cut -f 1`
-  $ if [ $regsize -lt $gdsize ]; then
-  >   echo 'generaldelta increased size of a revlog!'
-  > fi
+  >>> import os
+  >>> regsize = os.stat("repo/.hg/store/00manifest.i").st_size
+  >>> gdsize = os.stat("gdrepo/.hg/store/00manifest.i").st_size
+  >>> if regsize < gdsize:
+  ...     print 'generaldata increased size of manifest'