diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-04-04 14:24:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:48 -0500 |
commit | cb04f015eee8da5efa8f6fd2fb8e6493e3e7aa9b (patch) | |
tree | 3553e6efb77f5acb587ba27022183718f04eb03e /source4/script/tests/selftest.pl | |
parent | bc8474b5cc23f4bbbef0a5b2cffa8bbd5e6d3ac2 (diff) | |
download | samba-cb04f015eee8da5efa8f6fd2fb8e6493e3e7aa9b.tar.gz samba-cb04f015eee8da5efa8f6fd2fb8e6493e3e7aa9b.tar.bz2 samba-cb04f015eee8da5efa8f6fd2fb8e6493e3e7aa9b.zip |
r22077: Import only necessary test variables, more refactoring.
(This used to be commit 150bb2238ea91ead3bdde0a34ff801b79bc83ec3)
Diffstat (limited to 'source4/script/tests/selftest.pl')
-rwxr-xr-x | source4/script/tests/selftest.pl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index 52311347fe..247cd0b346 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -387,14 +387,13 @@ $ENV{PATH} = "$old_pwd/bin:$ENV{PATH}"; my @torture_options = (); if ($opt_socket_wrapper_pcap) { - $ENV{SOCKET_WRAPPER_PCAP_FILE} = $opt_socket_wrapper_pcap; + SocketWrapper::setup_pcap($opt_socket_wrapper_pcap); # Socket wrapper pcap implies socket wrapper $opt_socket_wrapper = 1; } my $socket_wrapper_dir; -if ($opt_socket_wrapper) -{ +if ($opt_socket_wrapper) { $socket_wrapper_dir = SocketWrapper::setup_dir("$prefix/w"); print "SOCKET_WRAPPER_DIR=$socket_wrapper_dir\n"; } else { @@ -433,10 +432,13 @@ if (defined($opt_skip)) { my $testenv_vars = $target->setup_env("dc", "$prefix/dc", $socket_wrapper_dir); -foreach (keys %$testenv_vars) { $ENV{$_} = $testenv_vars->{$_}; } - SocketWrapper::set_default_iface(6); +foreach ("PASSWORD", "DOMAIN", "SERVER", "CONFIGURATION", + "USERNAME", "PREFIX", "NETBIOSNAME", "KRB5_CONFIG") { + $ENV{$_} = $testenv_vars->{$_}; +} + my $interfaces = join(',', ("127.0.0.6/8", "127.0.0.7/8", "127.0.0.8/8", @@ -514,7 +516,7 @@ NETBIOSNAME=\$NETBIOSNAME\" && bash'"); next; } - # $target->setup_env($envname); + # $target->setup_env($envname, "$prefix/$envname", $socket_wrapper_dir); if ($from_build_farm) { run_test_buildfarm($name, $cmd, $i, $suitestotal); |