summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/superuser--README-urpmi.t4
-rw-r--r--t/superuser--media_info_dir.t4
-rw-r--r--t/superuser--split-transactions--promote.t3
3 files changed, 3 insertions, 8 deletions
diff --git a/t/superuser--README-urpmi.t b/t/superuser--README-urpmi.t
index 318e1f67..c72384a1 100644
--- a/t/superuser--README-urpmi.t
+++ b/t/superuser--README-urpmi.t
@@ -42,9 +42,7 @@ sub test_d {
sub test_urpmi {
my ($para, @wanted) = @_;
- my $urpmi = urpmi_cmd();
- print "# $urpmi $para\n";
- my $s = `$urpmi $para`;
+ my $s = run_urpm_cmd("urpmi $para");
print $s;
my @msgs = $s =~ /\nMore information on package[^\n]*\n(.*?)\n-{70}/msg;
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index 599ffde1..7d07d011 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -74,9 +74,7 @@ sub rpm_v3 {
foreach my $src_rpm (glob('media/rpm-v3/*.rpm')) {
my ($wanted_arch) = $src_rpm =~ /(\w+)\.rpm$/;
- my $cmd = urpm_cmd('urpmq') . " -f $src_rpm";
- warn "# $cmd\n";
- chomp(my $fullname = `$cmd`);
+ chomp(my $fullname = run_urpm_cmd("urpmq -f $src_rpm"));
my ($arch) = $fullname =~ /(\w+)$/;
if (rpm_is_jbj_version()) {
diff --git a/t/superuser--split-transactions--promote.t b/t/superuser--split-transactions--promote.t
index cf8394f8..69b8e208 100644
--- a/t/superuser--split-transactions--promote.t
+++ b/t/superuser--split-transactions--promote.t
@@ -116,7 +116,6 @@ sub test_conflict_gh {
sub run_urpmi_and_get_conflicts {
my ($para) = @_;
- my $cmd = urpmi_cmd() . " $para";
- my $output = `$cmd`;
+ my $output = run_urpm_cmd("urpmi $para");
$output =~ /\(due to conflicts with (.*)\)/g;
}