diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-01 01:31:06 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-01 01:31:06 +0000 |
commit | fbee3586fdd6f04db6321646df54c147c843a5e3 (patch) | |
tree | ed14f8c3aa9bad4702b8e044bcf385707f33e76c /selftest | |
parent | dc65824065fea3e6ca9ddedd4b118d26d338ee6e (diff) | |
download | samba-fbee3586fdd6f04db6321646df54c147c843a5e3.tar.gz samba-fbee3586fdd6f04db6321646df54c147c843a5e3.tar.bz2 samba-fbee3586fdd6f04db6321646df54c147c843a5e3.zip |
selftest: Let selftest provide the tempdir, rather than creating it as sideeffect of tests.py.
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/selftest.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index 33af5e29b7..d102d43779 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -399,6 +399,9 @@ die("using an empty prefix isn't allowed") unless $prefix ne ""; mkdir($prefix, 0777) unless -d $prefix; my $prefix_abs = abs_path($prefix); +my $tmpdir_abs = abs_path("$prefix/tmp"); +mkdir($tmpdir_abs, 0777) unless -d $tmpdir_abs; + my $srcdir_abs = abs_path($srcdir); my $builddir_abs = abs_path($builddir); @@ -658,6 +661,7 @@ if ($#testlists == -1) { } $ENV{SELFTEST_PREFIX} = "$prefix_abs"; +$ENV{SELFTEST_TMPDIR} = "$tmpdir_abs"; if ($opt_socket_wrapper) { $ENV{SELFTEST_INTERFACES} = $interfaces; } else { |