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

selftest:Samba4: use 'smbcontrol samba shutdown'

BUG: default avatarStefan Metzmacher <>
Reviewed-by: default avatarBjörn Baumbach <>

Autobuild-User(master): Andreas Schneider <>
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
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