[yum-commits] Branch 'yum-3_2_X' - test/skipbroken-tests.py

Tim Lauridsen timlau at osuosl.org
Wed Oct 29 11:43:19 UTC 2008


 test/skipbroken-tests.py |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 55f6d9757c975b25e10e9f79df57c4336785f57d
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Wed Oct 29 12:43:08 2008 +0100

    added a failing skip-broken test case there reproduces the case in rhbz #468394 and others

diff --git a/test/skipbroken-tests.py b/test/skipbroken-tests.py
index 5129cde..9992416 100644
--- a/test/skipbroken-tests.py
+++ b/test/skipbroken-tests.py
@@ -386,7 +386,11 @@ class SkipBrokenTests(DepsolveTests):
 
 
     def testBumpedSoName1(self):
-        """
+        """ This will fail because the skip-broken code can handle this case
+        d2 need a lib from b1, so the update fails.
+        d2 and b2 get skipped, but the installed b1 needs a
+        lib from a1, but it has been updated to a2, so it is
+        no longer there.
         """
         a1 = self.instPackage('a', '1', arch='x86_64')
         a1.addProvides("liba.so.1()(64bit)")
@@ -395,8 +399,10 @@ class SkipBrokenTests(DepsolveTests):
         
         b1 = self.instPackage('b', '1', arch='x86_64')
         b1.addProvides("libb.so.1()(64bit)")
+        b1.addRequires("liba.so.1()(64bit)")
         b2 = self.repoPackage('b', '2', arch='x86_64')
         b2.addProvides("libb.so.2()(64bit)")
+        b2.addRequires("liba.so.2()(64bit)")
         
         c1 = self.instPackage('c', '1', arch='x86_64')
         c1.addRequires("liba.so.1()(64bit)")
@@ -421,7 +427,7 @@ class SkipBrokenTests(DepsolveTests):
         self.tsInfo.addUpdate(e2, oldpo=e1)
         self.tsInfo.addUpdate(f2, oldpo=f1)
         self.assertEquals('ok', *self.resolveCode(skip=True))
-        self.assertResult([a2,b1,c2,d1,e2,f2])
+        #self.assertResult([a2,b1,c2,d1,e2,f2])
     
     def resolveCode(self,skip = False):
         solver = YumBase()


More information about the Yum-commits mailing list