From 7b88696bed9dac1a40e31f360a8781910636455a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 11 Apr 2007 03:45:39 +0000 Subject: r22161: Clarify exactly where the socket_wrapper should be handled (early), and ensure that $prefix exists before it tries to create $prefix/w. This should fix the build farm. Perhaps we should have a rm -rf $prefix at the start of this script, as that would have found the problem, but I want to be careful about that... Andrew Bartlett (This used to be commit a230261e83fd9161e60554b74cf8556f36b1af45) --- source4/script/tests/selftest.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/script/tests/selftest.pl') diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index e6ca48bafb..6886f8231e 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -371,6 +371,9 @@ $prefix =~ s+//+/+; $ENV{PREFIX} = $prefix; $ENV{SRCDIR} = $srcdir; +#Ensure we have the test prefix around +mkdir $prefix unless -d $prefix; + my $tls_enabled = not $opt_quick; my $from_build_farm = (defined($ENV{RUN_FROM_BUILD_FARM}) and ($ENV{RUN_FROM_BUILD_FARM} eq "yes")); @@ -543,7 +546,7 @@ sub setup_env($) } elsif ($envname eq "none") { $testenv_vars = {}; } else { - $testenv_vars = $target->setup_env($envname, $prefix, $socket_wrapper_dir); + $testenv_vars = $target->setup_env($envname, $prefix); } write_clientconf($conffile, $testenv_vars); foreach ("PASSWORD", "DOMAIN", "SERVER", "USERNAME", "NETBIOSNAME", -- cgit