selftest: fix for wbinfo -s tests for wellknown SIDs
authorRalph Boehme <slow@samba.org>
Fri, 31 Mar 2017 14:06:18 +0000 (16:06 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 6 Apr 2017 18:08:19 +0000 (20:08 +0200)
commitd8fd56a8244a3010469c27eaa3b73a2c5fbbc41f
tree4d90363d1f1d44a8d15a13d43a662306706474c8
parent167bb5ead8c7193d173fdba8a453279d422fa7ea
selftest: fix for wbinfo -s tests for wellknown SIDs

Rework while loop to not use a pipe as that uses a subshell for the loop
which means assigning to the variable failed is not visible in the
main script.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
nsswitch/tests/test_wbinfo.sh