From c3e44bc813e93ea62b5618bf47a1ddd35a92b866 Mon Sep 17 00:00:00 2001 From: Saurabh Tandan Date: Thu, 4 Aug 2016 12:22:45 -0700 Subject: [PATCH] LU-7483 tests: sanity test_103a misc test in acl corrected sanity test_103a was failing under SELinux enabled client throwing misc test failed error message. With the previous command "ls -dl d/l | awk 'sub(/\\./, "", $1); {print $1}'" the output consisted of 2 rows which was causing the failure. The issue is mentioned in the comments section of LU-7483. The solution was to filter the results using "ls -dl d/l | awk '{ sub(/\\.$/, "", $1); print $1 }'" instead and have the desired result. Results for successfully run sanity test_103a under SELinux enabled client environment can be found in the ticket. Test-Parameters: trivial testlist=sanity,sanity Signed-off-by: Saurabh Tandan Change-Id: I3fcd60161873040b66d7004fb1cf682b41a0b8d9 Reviewed-on: http://review.whamcloud.com/21722 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Sebastien Buisson Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/tests/acl/misc.test | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/tests/acl/misc.test b/lustre/tests/acl/misc.test index d8ace57..aa8b595 100644 --- a/lustre/tests/acl/misc.test +++ b/lustre/tests/acl/misc.test @@ -248,12 +248,13 @@ Add some users and groups > default:group::r-x > default:mask::r-x > default:other::--- - > - + > + Symlink in directory with default ACL? - +# Need to remove trailing '.' when SELinux is enabled + $ ln -s d d/l - $ ls -dl d/l | awk 'sub(/\\./, "", $1); {print $1}' + $ ls -dl d/l | awk '{ sub(/\\.$/, "", $1); print $1 }' > lrwxrwxrwx $ ls -dl -L d/l | awk '{print $1}' -- 1.8.3.1