Tim Lauridsen wrote:
I have run the yum test cases on a x86_64 system and on a i686 system.

On the x86_64 all tests run without problems on the i686 system 15 test fails.

Nice catch.

The test need to be grouped some how, so the multilib test not is performed on a non multi lib systems.

Does the attached patch fix that for you? It simply simulates that you are running on a x86_64 machine.

This brings to attention that there can be even more fun then additionally alter the machine arch... Is there a limit how long the test may run...?

Florian
diff --git a/test/operationstests.py b/test/operationstests.py
index 3bab8a4..5c57b06 100644
--- a/test/operationstests.py
+++ b/test/operationstests.py
@@ -1,4 +1,5 @@
 from testbase import *
+from rpmUtils import arch
 from simpleobsoletestests import SimpleObsoletesTests
 
 class SimpleUpdateTests(OperationsTests):
@@ -17,6 +18,12 @@ class SimpleUpdateTests(OperationsTests):
         pkgs.requires_update = FakePackage('zsh-utils', '2', '1', '0', 'noarch')
         pkgs.requires_update.addRequires('zsh', 'EQ', ('0', '2', '1'))
 
+    def setUp(self):
+        self._canonArch = arch.canonArch
+        arch.canonArch = "x86_64"
+    def tearDown(self):
+        arch.canonArch = self._canonArch
+
     # noarch to X
 
     def testUpdatenoarchTonoarch(self):
diff --git a/test/simpleobsoletestests.py b/test/simpleobsoletestests.py
index 07d9e88..81c66a9 100644
--- a/test/simpleobsoletestests.py
+++ b/test/simpleobsoletestests.py
@@ -1,4 +1,5 @@
 from testbase import *
+from rpmUtils import arch
 
 class SimpleObsoletesTests(OperationsTests):
 
@@ -22,6 +23,12 @@ class SimpleObsoletesTests(OperationsTests):
         pkgs.requires_obsoletes = FakePackage('superzippy', '3.5', '3', '0', 'noarch')
         pkgs.requires_obsoletes.addRequires('zzz')
 
+    def setUp(self):
+        self._canonArch = arch.canonArch
+        arch.canonArch = "x86_64"
+    def tearDown(self):
+        arch.canonArch = self._canonArch
+
     # noarch to X
 
     def testObsoletenoarchTonoarch(self):
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to