selftest: Remove excption for NSS_WRAPPER_HOSTS and RESOLV_WRAPPER_HOSTS
authorAndrew Bartlett <abartlet@samba.org>
Fri, 31 Aug 2018 08:26:19 +0000 (20:26 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Sep 2018 01:22:20 +0000 (03:22 +0200)
These must be set correctly for each command in provision also.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
selftest/selftest.pl

index bd72841199f4b7b6e4111fac70b3c958fd868e35..7eb5f74b3ef828c18515647c635b91be2084ab04 100755 (executable)
@@ -958,11 +958,7 @@ sub setup_env($$)
        # variables don't leak in. Provisioning steps must explicitly set their
        # necessary variables when calling out to other executables
        foreach (@exported_envvars) {
        # variables don't leak in. Provisioning steps must explicitly set their
        # necessary variables when calling out to other executables
        foreach (@exported_envvars) {
-               unless ($_ == "NSS_WRAPPER_HOSTS" ||
-                       $_ == "RESOLV_WRAPPER_HOSTS")
-               {
-                       delete $ENV{$_};
-               }
+               delete $ENV{$_};
        }
        delete $ENV{SOCKET_WRAPPER_DEFAULT_IFACE};
        delete $ENV{SMB_CONF_PATH};
        }
        delete $ENV{SOCKET_WRAPPER_DEFAULT_IFACE};
        delete $ENV{SMB_CONF_PATH};