Whamcloud - gitweb
LU-12267 tests: filter trailing '.' for SELinux 26/35026/6
authorJames Nunez <jnunez@whamcloud.com>
Fri, 31 May 2019 21:28:20 +0000 (15:28 -0600)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2019 03:31:21 +0000 (03:31 +0000)
commitf000996069acc7d535b7574a9d9a4ab65e753ff0
treefbf9395bf7d57a598464ceb28bc4575a86e43213
parent1476ac047b449886a0c382b840a7b09dc0cec7eb
LU-12267 tests: filter trailing '.' for SELinux

When SELinux is enforced, sanity test 420 fails due to
the "ls -n" command producing an extra '.' at the end of
the file/directory permissions to indicate extra security
attributes are set.

We need to filter out the trailing '.' in the 'ls -n'
output for testing to pass when SELinux is enabled.

Test-Parameters: trivial envdefinitions=ONLY=420 testlist=sanity
Test-Parameters: clientselinux envdefinitions=ONLY=420 testlist=sanity
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I4a2f199d2ef4a7b1b6a1b381041b384bb0077cc6
Reviewed-on: https://review.whamcloud.com/35026
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh