aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-01-15 07:45:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-01-15 07:45:56 +0000
commit612e0ca300d0e5046a5213309371da6c1ab7548e (patch)
treea8c3406b6c3a98d9b345d4f984c7bd6d5b895bc3 /t
parent826fec5b963322a4f9ac7e32054e415ed426cbde (diff)
downloadperl-URPM-612e0ca300d0e5046a5213309371da6c1ab7548e.tar
perl-URPM-612e0ca300d0e5046a5213309371da6c1ab7548e.tar.gz
perl-URPM-612e0ca300d0e5046a5213309371da6c1ab7548e.tar.bz2
perl-URPM-612e0ca300d0e5046a5213309371da6c1ab7548e.tar.xz
perl-URPM-612e0ca300d0e5046a5213309371da6c1ab7548e.zip
- use our own tmppath (Patrice Dumas)
- remove temporary build directories
Diffstat (limited to 't')
-rw-r--r--t/00prepare.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/00prepare.t b/t/00prepare.t
index d454c02..7261e48 100644
--- a/t/00prepare.t
+++ b/t/00prepare.t
@@ -3,11 +3,14 @@
use strict;
use warnings;
use Test::More tests => 1;
+use Cwd;
chdir 't' if -d 't';
-for (qw(BUILD RPMS RPMS/noarch)) {
+for (qw(BUILD RPMS RPMS/noarch tmp)) {
mkdir $_;
}
# locally build a test rpm
-system(rpmbuild => '--define', '_topdir .', '-bb', '--clean', '../test-rpm.spec');
+system(rpmbuild => '--define', '_topdir .', '--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 BUILD tmp') };