selftest: Improve error handling and perl style when setting up users in Samba4.pm
commitf01e4e19cf67ae9bcb939cdaacab78fac74fb56c
authorAndrew Bartlett <abartlet@samba.org>
Sun, 17 Oct 2021 22:55:14 +0000 (18 11:55 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2021 22:37:10 +0000 (27 22:37 +0000)
treef273864f760c13251ff481ee3c8681ca7ae0da24
parent2bf0e4224f85751fff4485e00e0d1fe13d5030bb
selftest: Improve error handling and perl style when setting up users in Samba4.pm

This catches errors and avoids using global varibles (the old
style file handles are global).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14869
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 459200caba04fd83ed650b9cdfe5b158cf9a149f)
selftest/target/Samba4.pm