From: Christof Schmitt Date: Thu, 4 Feb 2016 23:39:59 +0000 (-0700) Subject: test_sharesec: Fix check for deleted ACL X-Git-Tag: talloc-2.1.6~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66f5d0902da209276124fb7c504a3e0d926d989b;p=thirdparty%2Fsamba.git test_sharesec: Fix check for deleted ACL Remove semicolon; without this change the test could not detect a failure of removing the ACL. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/script/tests/test_sharesec.sh b/source3/script/tests/test_sharesec.sh index 59dbe8fdc7a..8165a58ee68 100755 --- a/source3/script/tests/test_sharesec.sh +++ b/source3/script/tests/test_sharesec.sh @@ -94,7 +94,7 @@ testit "Query ACL with three entries after removal" $CMD --view || \ COUNT=$($CMD --view | grep ACL: | sed -e 's/^ACL://' | wc -l) testit "Verify ACL count after removal" test $COUNT -eq 3 || \ failed=$(expr $failed + 1) -ACL="$($CMD --view | grep S-1-5-32-546')" +ACL="$($CMD --view | grep S-1-5-32-546)" testit "Verify removal" test -e "$ACL" || failed=$(expr $failed + 1) testit "Set ACL as hex value" $CMD --add S-1-5-32-547:0x1/0x0/0x001F01FF || \