summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
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/helper.pm
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/helper.pm')
-rw-r--r--t/helper.pm4
1 files changed, 3 insertions, 1 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';
}