From af9e0701a235db1e683f4b5ae87b9ef9374cb3f7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 6 Sep 2008 10:48:41 +0000 Subject: for tests: handle empty list of pkgs to remove --- t/helper.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/helper.pm b/t/helper.pm index a9d6728c..46cd91d4 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -160,14 +160,14 @@ sub check_nothing_installed() { sub check_installed_and_remove { my (@names) = @_; check_installed_names(@names); - system_("rpm --root $::pwd/root -e " . join(' ', @names)); + system_("rpm --root $::pwd/root -e " . join(' ', @names)) if @names; check_nothing_installed(); } sub check_installed_fullnames_and_remove { my (@names) = @_; check_installed_fullnames(@names); - system_("rpm --root $::pwd/root -e " . join(' ', @names)); + system_("rpm --root $::pwd/root -e " . join(' ', @names)) if @names; check_nothing_installed(); } @@ -180,7 +180,7 @@ sub check_installed_and_urpme { END { - $using_root and system('rm -rf root'); +# $using_root and system('rm -rf root'); $server_pid and kill(9, $server_pid); system('rm -rf tmp'); } -- cgit v1.2.1