diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-10-16 12:05:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-10-16 12:05:28 +0000 |
commit | 6dd0990b8503fb44382974ae548e92bdbc3f3c70 (patch) | |
tree | 1e9884888d4311404ccaa7b50accc5240f129d9c | |
parent | 7a72701472aa7e197f4e0b4ac3bcae309f6abb2f (diff) | |
download | urpmi-6dd0990b8503fb44382974ae548e92bdbc3f3c70.tar urpmi-6dd0990b8503fb44382974ae548e92bdbc3f3c70.tar.gz urpmi-6dd0990b8503fb44382974ae548e92bdbc3f3c70.tar.bz2 urpmi-6dd0990b8503fb44382974ae548e92bdbc3f3c70.tar.xz urpmi-6dd0990b8503fb44382974ae548e92bdbc3f3c70.zip |
use system_() from helper.pm
-rw-r--r-- | t/02create_pkgs.t | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index 42978b09..7d63037b 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use strict; -use warnings; +use lib '.', 't'; +use helper; use Test::More 'no_plan'; chdir 't' if -d 't'; @@ -80,9 +81,3 @@ sub rpmbuild_srpm { $medium_name; } - -sub system_ { - my ($cmd) = @_; - system($cmd); - ok($? == 0, $cmd); -} |