/[soft]/rpm/urpmi/trunk/t/helper.pm
ViewVC logotype

Diff of /rpm/urpmi/trunk/t/helper.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4851 by tv, Mon Feb 27 20:42:17 2012 UTC revision 4852 by tv, Fri Jun 8 18:50:43 2012 UTC
# Line 5  use base 'Exporter'; Line 5  use base 'Exporter';
5  our @EXPORT = qw(need_root_and_prepare  our @EXPORT = qw(need_root_and_prepare
6                   start_httpd httpd_port                   start_httpd httpd_port
7                   urpmi_addmedia urpmi_removemedia urpmi_update                   urpmi_addmedia urpmi_removemedia urpmi_update
8                   urpm_cmd run_urpm_cmd urpmi_cmd urpmi test_urpmi_fail urpme                   urpm_cmd run_urpm_cmd urpmi_cmd urpmi urpmi_partial test_urpmi_fail urpme
9                   urpmi_cfg set_urpmi_cfg_global_options                   urpmi_cfg set_urpmi_cfg_global_options
10                   system_ system_should_fail                   system_ system_should_fail
11                   rpm_is_jbj_version                   rpm_is_jbj_version
# Line 78  sub urpmi_update { Line 78  sub urpmi_update {
78      my ($para) = @_;      my ($para) = @_;
79      system_(urpm_cmd('urpmi.update') . " $para");      system_(urpm_cmd('urpmi.update') . " $para");
80  }  }
81    sub urpmi_partial {
82        my ($para) = @_;
83        system_should_partially_fail(urpmi_cmd() . " --ignoresize $para");
84    }
85  sub urpmi {  sub urpmi {
86      my ($para) = @_;      my ($para) = @_;
87      system_(urpmi_cmd() . " --ignoresize $para");      system_(urpmi_cmd() . " --ignoresize $para");
# Line 106  sub system_ { Line 110  sub system_ {
110      system($cmd);      system($cmd);
111      ok($? == 0, $cmd);      ok($? == 0, $cmd);
112  }  }
113    sub system_should_partially_fail {
114        my ($cmd) = @_;
115        system($cmd);
116        ok($? == 17 << 8, $cmd);
117    }
118  sub system_should_fail {  sub system_should_fail {
119      my ($cmd) = @_;      my ($cmd) = @_;
120      system($cmd);      system($cmd);

Legend:
Removed from v.4851  
changed lines
  Added in v.4852

  ViewVC Help
Powered by ViewVC 1.1.28