diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2009-07-22 18:21:30 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2009-07-22 18:21:30 +0000 |
commit | efe14df5eedcd0c1cbab65142c7b982b41e88341 (patch) | |
tree | 76c1ebfa193700a3f0ca7a64f78c2ee63fe64a89 /t/00prepare.t | |
parent | a4b836dfe43cf1a498e93094d54d498a55142fef (diff) | |
download | perl-URPM-efe14df5eedcd0c1cbab65142c7b982b41e88341.tar perl-URPM-efe14df5eedcd0c1cbab65142c7b982b41e88341.tar.gz perl-URPM-efe14df5eedcd0c1cbab65142c7b982b41e88341.tar.bz2 perl-URPM-efe14df5eedcd0c1cbab65142c7b982b41e88341.tar.xz perl-URPM-efe14df5eedcd0c1cbab65142c7b982b41e88341.zip |
really clean up temporary files & directories properly
Diffstat (limited to 't/00prepare.t')
-rw-r--r-- | t/00prepare.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/00prepare.t b/t/00prepare.t index 25b5c37..7ea2704 100644 --- a/t/00prepare.t +++ b/t/00prepare.t @@ -6,11 +6,11 @@ use Test::More tests => 1; use Cwd; chdir 't' if -d 't'; -for (qw(BUILD SOURCES RPMS RPMS/noarch tmp)) { - mkdir $_; +mkdir "tmp"; +for (qw(BUILD SOURCES RPMS RPMS/noarch)) { + mkdir "tmp/".$_; } # 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' ); +system(rpmbuild => '--define', '_topdir '. Cwd::cwd() . "/tmp/", '-bb', 'test-rpm.spec'); +ok( -f 'tmp/RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' ); -END { system('rm -rf BUILD tmp') }; |