diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-19 12:43:54 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-19 16:13:42 +1000 |
commit | 5189cfca4ea230125c7995d30caf2b48a332deb0 (patch) | |
tree | c3a135589f9d1612e52b5055cea87bf6f6f49fa8 /selftest/selftest.pl | |
parent | 5439553c96bd906e19be7060552cb59bdaec3eb1 (diff) | |
download | samba-5189cfca4ea230125c7995d30caf2b48a332deb0.tar.gz samba-5189cfca4ea230125c7995d30caf2b48a332deb0.tar.xz samba-5189cfca4ea230125c7995d30caf2b48a332deb0.zip |
selftest: move warning about invalid environments up to selftest.pl
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-x | selftest/selftest.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index 1c8436bb04..aa22a57c79 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -878,10 +878,14 @@ sub setup_env($$) } else { $testenv_vars = $target->setup_env($envname, $prefix); if (defined($testenv_vars) && not defined($testenv_vars->{target})) { - $testenv_vars->{target} = $target; + $testenv_vars->{target} = $target; + } + if (not defined($testenv_vars)) { + warn("$opt_target can't provide environment '$envname'"); } } + return undef unless defined($testenv_vars); $running_envs{$envname} = $testenv_vars; |