tests: move generaldelta test to inline python (issue4064) stable
authorMatt Mackall <mpm@selenic.com>
Mon, 21 Oct 2013 10:50:58 -0700
branchstable
changeset 19942 2c886dedd902
parent 19941 2bf99bc5077a
child 19943 4de116871044
tests: move generaldelta test to inline python (issue4064)
tests/test-generaldelta.t
--- 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'