Add test for symbolic to octal when others is omitted (#80822)

* Add test for symbolic to octal when others is omitted

Add case when there should be no permissions for other.
And specific permissions for owner and group.

* Fix permissions test by explicitly setting no permissions for others

* Add additional cases where multiple permissions are specified
pull/80984/head
Arne de Laat 1 year ago committed by GitHub
parent 0a36cd910e
commit 070ce87440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,6 +63,14 @@ DATA = ( # Going from no permissions to setting all for user, group, and/or oth
# Multiple permissions
(0o040000, u'u=rw-x+X,g=r-x+X,o=r-x+X', 0o0755),
(0o100000, u'u=rw-x+X,g=r-x+X,o=r-x+X', 0o0644),
(0o040000, u'ug=rx,o=', 0o0550),
(0o100000, u'ug=rx,o=', 0o0550),
(0o040000, u'u=rx,g=r', 0o0540),
(0o100000, u'u=rx,g=r', 0o0540),
(0o040777, u'ug=rx,o=', 0o0550),
(0o100777, u'ug=rx,o=', 0o0550),
(0o040777, u'u=rx,g=r', 0o0547),
(0o100777, u'u=rx,g=r', 0o0547),
)
UMASK_DATA = (

Loading…
Cancel
Save