selftest: Move fork cmd args up a level
commitba9323abde060c832274e84f1e8a6b79fccc5fce
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 23 May 2019 00:12:44 +0000 (23 12:12 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 May 2019 03:19:17 +0000 (24 03:19 +0000)
treefd6708b2847caf3ea3ed444e77910d53c9512019
parent0fd3685cfd8f6613517552685f649c649fe4cd08
selftest: Move fork cmd args up a level

This is a fairly simple move of code and is the first step in a larger
refactor.

It doesn't matter if we build up the command args prior to the fork (we
only use them in the forked child). But moving the code means the code
to handle the fork-and-exec becomes common code that is repeated in
several places throughout Samba3.pm and Samba4.pm.

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