summaryrefslogtreecommitdiffstats
path: root/t/superuser--arch_to_noarch.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-30 17:57:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-30 17:57:43 +0000
commit62c1446f09cc16428431510218e5e4f1e06271f3 (patch)
treea0a3601c5138ac60d2a92752b196ab6bea6c4008 /t/superuser--arch_to_noarch.t
parent981c22ad5c1752789bbccd1e09302c2123d930d2 (diff)
downloadurpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.gz
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.bz2
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.xz
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.zip
more tests, clean some others, enhance helper.pm
Diffstat (limited to 't/superuser--arch_to_noarch.t')
-rw-r--r--t/superuser--arch_to_noarch.t11
1 files changed, 5 insertions, 6 deletions
diff --git a/t/superuser--arch_to_noarch.t b/t/superuser--arch_to_noarch.t
index 3224ea87..1b3869dc 100644
--- a/t/superuser--arch_to_noarch.t
+++ b/t/superuser--arch_to_noarch.t
@@ -1,18 +1,17 @@
#!/usr/bin/perl
use strict;
+use lib '.', 't';
+use helper;
use Test::More 'no_plan';
-chdir 't' if -d 't';
-require './helper.pm';
-
-helper::need_root_and_prepare();
+need_root_and_prepare();
my $name = 'arch_to_noarch';
foreach my $nb (1 .. 4) {
my $medium_name = "${name}_$nb";
- helper::urpmi_addmedia("$medium_name $::pwd/media/$medium_name");
- helper::urpmi("$name");
+ urpmi_addmedia("$medium_name $::pwd/media/$medium_name");
+ urpmi("$name");
is(`rpm -qa --root $::pwd/root`, "$name-$nb-1\n");
}