selftest: Store fork-and-exec daemon info in a hashmap
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 23 May 2019 01:45:49 +0000 (13:45 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 May 2019 03:19:17 +0000 (03:19 +0000)
commitc79f0c197558e86fe4f9e27b0c4682441bb55b0b
tree09f6951947b6044cdeaf54e0bdc196b017707158
parentad30fdc6ba28374b84dbe94af92c5694bff6f86e
selftest: Store fork-and-exec daemon info in a hashmap

This intermediary refactor adds a hashmap that stores the values needed
to run each samba daemon. This adds a bit more code in the short term,
but it basically means the code in 5 different places now becomes
identical, and we can extract it out to a common function.

The converting FULL_CMD from an array reference back to an array is a
bit ugly, but we can clean this up a bit once the code is all in one
place.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba3.pm
selftest/target/Samba4.pm