svn commit: samba r22359 - in branches/SAMBA_4_0/source/script/tests: .

metze at samba.org metze at samba.org
Thu Apr 19 07:39:46 GMT 2007


Author: metze
Date: 2007-04-19 07:39:45 +0000 (Thu, 19 Apr 2007)
New Revision: 22359

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22359

Log:
try to fix the start failures in the build-farm by creating the prefix dir
before using abs_path()

metze
Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.pl


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.pl
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.pl	2007-04-19 01:26:38 UTC (rev 22358)
+++ branches/SAMBA_4_0/source/script/tests/selftest.pl	2007-04-19 07:39:45 UTC (rev 22359)
@@ -444,19 +444,20 @@
 $prefix =~ s+/./+/+;
 $prefix =~ s+/$++;
 
+die("using an empty prefix isn't allowed") unless $prefix ne "";
+
+#Ensure we have the test prefix around
+mkdir $prefix unless -d $prefix;
+
 my $prefix_abs = abs_path($prefix);
 my $srcdir_abs = abs_path($srcdir);
 
-die("using an empty prefix isn't allowed") unless $prefix ne "";
 die("using an empty absolute prefix isn't allowed") unless $prefix_abs ne "";
 die("using '/' as absolute prefix isn't allowed") unless $prefix_abs ne "/";
 
 $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"));



More information about the samba-cvs mailing list