summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-06 10:48:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-06 10:48:41 +0000
commitaf9e0701a235db1e683f4b5ae87b9ef9374cb3f7 (patch)
tree1ad5bf038467fbb3153b6b7ac5da38c05c80e7fc /t
parentbc2fb3babfa7b63d10a21132c9561a2ff685c47e (diff)
downloadurpmi-af9e0701a235db1e683f4b5ae87b9ef9374cb3f7.tar
urpmi-af9e0701a235db1e683f4b5ae87b9ef9374cb3f7.tar.gz
urpmi-af9e0701a235db1e683f4b5ae87b9ef9374cb3f7.tar.bz2
urpmi-af9e0701a235db1e683f4b5ae87b9ef9374cb3f7.tar.xz
urpmi-af9e0701a235db1e683f4b5ae87b9ef9374cb3f7.zip
for tests: handle empty list of pkgs to remove
Diffstat (limited to 't')
-rw-r--r--t/helper.pm6
1 files 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');
}