[PATCH] test-inherit-mode: Ignore all but the very basic permissions

Thomas Arendsen Hein thomas at intevation.de
Sat Feb 16 02:42:07 CST 2008


* Giorgos Keramidas <keramida at ceid.upatras.gr> [20080216 00:26]:
> # HG changeset patch
> # User Giorgos Keramidas <keramida at ceid.upatras.gr>
> # Date 1203117732 -7200
> # Node ID 52537697617fc5c293b830906c8f2601c4b0afa1
> # Parent  11a09d5779f4b511d3851748cd8dadd06433f28d
> test-inherit-mode: Ignore all but the very basic permissions
> 
> Without this change, the script tries to compare set-gid and
> other special bits too, whose inheritance properties are not
> that easy to duplicate in a test script.
> 
> diff --git a/tests/test-inherit-mode b/tests/test-inherit-mode
> --- a/tests/test-inherit-mode
> +++ b/tests/test-inherit-mode
> @@ -31,7 +31,7 @@
>  cat >mode.py <<EOF
>  import sys
>  import os
> -print '%05o' % os.lstat(sys.argv[1]).st_mode
> +print '%05o' % (os.lstat(sys.argv[1]).st_mode & 0777)
>  EOF
>  
>  umask 077

But the point is to check if set-gid is preserved (if possible).

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list