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/parse.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/parse.t')
-rw-r--r-- | t/parse.t | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,9 +18,9 @@ URPM::setVerbosity(2); my $a = new URPM; ok($a); -END { system('rm -rf hdlist.cz empty_hdlist.cz headers') } +END { system('rm -rf hdlist.cz empty_hdlist.cz headers tmp') } -my ($start, $end) = $a->parse_rpms_build_headers(rpms => [ "RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ], keep_all_tags => 1); +my ($start, $end) = $a->parse_rpms_build_headers(rpms => [ "tmp/RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ], keep_all_tags => 1); ok(@{$a->{depslist}} == 1); my $pkg = $a->{depslist}[0]; ok($pkg); @@ -69,7 +69,7 @@ rpm_is_jbj_version() ? ok($pkg->is_platform_compat() > 0, "can evaluate platform score") : pass('no platform compat'); -my $headers = eval { [ $b->parse_rpms_build_headers(rpms => [ "RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ], +my $headers = eval { [ $b->parse_rpms_build_headers(rpms => [ "tmp/RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ], dir => 'headers') ] }; is($@, '', 'parse_rpms_build_headers'); is(int @$headers, 1, 'parse_rpms_build_headers'); |