aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-12-09 16:40:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-12-09 16:40:03 +0000
commit4671cc5c231462bfdbfa0400f0e3239ecfbd5f70 (patch)
tree73c6b8e9a32008938bbfd5428495b6056d31cc6d
parentd74f9f928084167275d1faf57a038d08d2db3586 (diff)
downloadperl-URPM-4671cc5c231462bfdbfa0400f0e3239ecfbd5f70.tar
perl-URPM-4671cc5c231462bfdbfa0400f0e3239ecfbd5f70.tar.gz
perl-URPM-4671cc5c231462bfdbfa0400f0e3239ecfbd5f70.tar.bz2
perl-URPM-4671cc5c231462bfdbfa0400f0e3239ecfbd5f70.tar.xz
perl-URPM-4671cc5c231462bfdbfa0400f0e3239ecfbd5f70.zip
revert wrong commit
-rw-r--r--t/00prepare.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/t/00prepare.t b/t/00prepare.t
index c9bb5fd..25b5c37 100644
--- a/t/00prepare.t
+++ b/t/00prepare.t
@@ -5,13 +5,12 @@ use warnings;
use Test::More tests => 1;
use Cwd;
-@tmpdirs = qw(BUILD SOURCES RPMS RPMS/noarch tmp);
-
chdir 't' if -d 't';
-mkdir $_ foreach @tmpdirs;
-
+for (qw(BUILD SOURCES RPMS RPMS/noarch tmp)) {
+ mkdir $_;
+}
# locally build a test rpm
system(rpmbuild => '--define', '_topdir ' . Cwd::cwd(), '--define', '_tmppath ' . Cwd::cwd() . '/tmp/', '-bb', 'test-rpm.spec');
ok( -f 'RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' );
-END { system('rm', '-rf', @tmpdirs) };
+END { system('rm -rf BUILD tmp') };