Commit d03991f5 authored by Stefan Metzmacher's avatar Stefan Metzmacher Committed by Andreas Schneider

selftest:Samba4: use 'smbcontrol samba shutdown'

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13752Signed-off-by: default avatarStefan Metzmacher <metze@samba.org>
Reviewed-by: default avatarBjörn Baumbach <bbaumbach@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jan 30 01:51:48 CET 2019 on sn-devel-144
parent 832776c0
......@@ -2221,6 +2221,15 @@ sub teardown_env_terminate($$)
my ($self, $envvars) = @_;
my $pid;
# This should cause samba to terminate gracefully
my $smbcontrol = Samba::bindir_path($self, "smbcontrol");
my $cmd = "";
$cmd .= "$smbcontrol samba shutdown $envvars->{CONFIGURATION}";
my $ret = system($cmd);
if ($ret != 0) {
warn "'$cmd' failed with '$ret'\n";
}
# This should cause samba to terminate gracefully
close($envvars->{STDIN_PIPE});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment