summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 10:02:29 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-07-02 16:00:48 +0200
commit99ea7f866713a84fcc027b1d584546bb0169ee0e (patch)
tree8a49c496cc8bcd3dcf31e8dc7b46816118a2f43d /t
parent793a3c1b2cabe9277e02b7b32e25132cca710137 (diff)
downloadurpmi-99ea7f866713a84fcc027b1d584546bb0169ee0e.tar
urpmi-99ea7f866713a84fcc027b1d584546bb0169ee0e.tar.gz
urpmi-99ea7f866713a84fcc027b1d584546bb0169ee0e.tar.bz2
urpmi-99ea7f866713a84fcc027b1d584546bb0169ee0e.tar.xz
urpmi-99ea7f866713a84fcc027b1d584546bb0169ee0e.zip
adapt testsuite to rpm-4.14.2 RC1
we need to define %_pkgverify_level to none else locally build packages will derail the testsuite as some pkg installations will fail with eg: package nls-1.0-2.i386 does not verify: no digest
Diffstat (limited to 't')
-rw-r--r--t/helper.pm4
-rw-r--r--t/superuser--file-conflicts.t2
-rw-r--r--t/superuser--rpmnew.t2
3 files changed, 5 insertions, 3 deletions
diff --git a/t/helper.pm b/t/helper.pm
index e1ae6655..40324133 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -23,7 +23,9 @@ sub need_root_and_prepare() {
system('rm -rf root');
isnt(-d 'root', "test root dir can not be removed $!");
- mkdir 'root';
+ system('mkdir -p root/etc/rpm');
+ system('echo "%_pkgverify_level none" >root/etc/rpm/macros');
+ # system('echo "%_pkgverify_flags 0x0" >> root/etc/rpm/macros');
$using_root = 1;
$ENV{LC_ALL} = 'C';
}
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t
index 941eb669..6528d2c2 100644
--- a/t/superuser--file-conflicts.t
+++ b/t/superuser--file-conflicts.t
@@ -184,7 +184,7 @@ sub test_rpm_i_fail {
system_should_fail("rpm --root $::pwd/root -i $rpms");
}
sub check_no_etc_files() {
- if (my @l = grep { !m!/urpmi$! } glob("$::pwd/root/etc/*")) {
+ if (my @l = grep { !m!/urpmi|rpm$! } glob("$::pwd/root/etc/*")) {
fail(join(' ', @l) . " files should not be there");
}
}
diff --git a/t/superuser--rpmnew.t b/t/superuser--rpmnew.t
index d82f45f7..80a492c7 100644
--- a/t/superuser--rpmnew.t
+++ b/t/superuser--rpmnew.t
@@ -68,7 +68,7 @@ sub test3 {
}
sub check_no_etc_files() {
- if (my @l = grep { !m!/urpmi$! } glob("$::pwd/root/etc/*")) {
+ if (my @l = grep { !m!/urpmi|rpm$! } glob("$::pwd/root/etc/*")) {
fail(join(' ', @l) . " files should not be there");
}
}