s4 messaging tests: Fix race condition in smbcontrol tests
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 20 Dec 2018 02:46:21 +0000 (15:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Dec 2018 02:39:24 +0000 (03:39 +0100)
commit390871602d244510c941f3c978d2f4371bb62bb7
tree44cf799b08db72aa305e1bf8e28c6be135f56470
parent05c981f0b4acd7b27e72098def023c82b92b6e59
s4 messaging tests: Fix race condition in smbcontrol tests

The test for the smbcontrol sleep command and the inject fault command
both used the "rpc_server" process as a target.  As the inject fault
command caused the process to restart there was a race condition between
the process restarting and the sleep test running.  To prevent this the
tests now use different target processes.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Dec 21 03:39:24 CET 2018 on sn-devel-144
python/samba/tests/blackbox/smbcontrol_process.py