selftest: fix acl_xattr test: sn-devel unreliable gid
commit39ac1dced6d82ef3b2e693efa6ffa9d83a0ca1ce
authorRalph Boehme <slow@samba.org>
Sun, 8 Oct 2017 06:51:05 +0000 (8 08:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:01 +0000 (25 08:43 +0200)
tree3a19e75984d02fedd39c05e7ee70de966d9754c5
parent8ddf7812fec656a2eeed6927e28144cf5538ead5
selftest: fix acl_xattr test: sn-devel unreliable gid

The "nt_affects_chgrp" kept failing in a full autobuild on sn-devel
because the actual gid of the created file as returned by smbclient -c
getfacl was reliably the unix gid of my account. It should have been the
mapped domusers group for the primary users "Domain Users"
group. Running the test individually or even the full set of
"samba3.blackbox" tests didn't trigger the error.

Looks like an issue with vfs_fake_acls and vfs_xattr_tdb, but I wasn't
able to track it down. As the test only really want to ensure that
smbcacls -G set the gid to the requested value, just remove the check
for the actual initial gid.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ea0ea829f5af63ab9638e758631c3002cbb6b4ce)
source3/script/tests/test_acl_xattr.sh