From 612e0ca300d0e5046a5213309371da6c1ab7548e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 15 Jan 2007 07:45:56 +0000 Subject: - use our own tmppath (Patrice Dumas) - remove temporary build directories --- t/00prepare.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 't') 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') }; -- cgit v1.2.1