diff options
author | Guillem Jover <guillem@debian.org> | 2009-11-20 04:14:34 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-11-20 04:19:12 +0100 |
commit | 791ec2860288979ed1e34d7b963c198b61973a33 (patch) | |
tree | b0eca7efb76b3249cd791aafcfaf46514e92508d /scripts/t | |
parent | bc498b8ad1e6f1aa5320c3181f2aa59d3be53e54 (diff) | |
download | dpkg-791ec2860288979ed1e34d7b963c198b61973a33.tar.gz |
Namespace temporary directories for test cases
We avoid any name clashes during the test suite run. And the hierarchy
gets more clear when debugging in case any problem arises.
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/500_Dpkg_Path.t | 3 | ||||
-rw-r--r-- | scripts/t/900_update_alternatives.t | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/t/500_Dpkg_Path.t b/scripts/t/500_Dpkg_Path.t index 59cbfa0cd..cda17f761 100644 --- a/scripts/t/500_Dpkg_Path.t +++ b/scripts/t/500_Dpkg_Path.t @@ -22,8 +22,9 @@ use_ok('Dpkg::Path', 'canonpath', 'resolve_symlink', 'check_files_are_the_same', 'get_pkg_root_dir', 'guess_pkg_root_dir', 'relative_to_pkg_root'); -my $tmpdir = 't.tmp'; +my $tmpdir = 't.tmp/500_Dpkg_Path'; +mkdir $tmpdir; mkdir "$tmpdir/a"; mkdir "$tmpdir/a/b"; mkdir "$tmpdir/a/b/c"; diff --git a/scripts/t/900_update_alternatives.t b/scripts/t/900_update_alternatives.t index 890471474..d630ddfaf 100644 --- a/scripts/t/900_update_alternatives.t +++ b/scripts/t/900_update_alternatives.t @@ -21,7 +21,7 @@ use strict; use warnings; my $srcdir = $ENV{srcdir} || '.'; -my $tmpdir = 't.tmp'; +my $tmpdir = 't.tmp/900_update_alternatives'; my $admindir = File::Spec->rel2abs("$tmpdir/admindir"), my $altdir = File::Spec->rel2abs("$tmpdir/alternatives"); my $bindir = File::Spec->rel2abs("$tmpdir/bin"); |