testlib: suppress superfluous messages from rm
commit544f987dbbb5441f05bd5ff5a4ee93e931f9a59c
authorKyle J. McKay <mackyle@gmail.com>
Fri, 16 Jun 2017 00:14:24 +0000 (15 17:14 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 16 Jun 2017 00:14:24 +0000 (15 17:14 -0700)
tree8ebd14a17404989f21f35b1cc505f470f3960a9b
parent15a5113e81b47b3a698789fdf58ecf98ed03c2f3
testlib: suppress superfluous messages from rm

During trash directory cleanup rm may spew some unimportant
messages if the permissions are overly restricted during the
initial part of the clean up.

They are irrelevant and distracting since if the cleanup really
fails they will be emitted correctly later.

Therefore suppress the bogus messages.

Also take this opportunity to make sure missing read permission
is also handled corretly during the cleanup and everything truly
executes as intended in the presence of permission restrictions.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/test-lib-main.sh