1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

selftest: Report better error message if environment is unknown

Now we get the error “environment [...] is unknown” rather than “samba
can't start up known environment”.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-16 12:04:49 +12:00 committed by Andrew Bartlett
parent a1a1adb7b7
commit 480060ecd3

View File

@ -129,7 +129,7 @@ sub setup_env($$$)
}
if ($env eq "UNKNOWN") {
warn("unknown environment '$envname'");
return undef;
return $env;
}
$target->{vars}->{$envname} = $env;