tests: move generaldelta test to inline python (
issue4064)
--- 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'