Added i686 packages to the repomaker test
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 22 Sep 2013 11:57:01 +0000 (14:57 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Sun, 22 Sep 2013 11:57:01 +0000 (14:57 +0300)
Thanks Qiang for this suggestion. Adding i686 packages improves the test
in a way that 2 mapped architectures(i586 and i686) are tested.

Change-Id: Ib32255520fdca733082f8779c3c5eb60ebe54bc5
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
tests/test_repomaker.py

index 048fc86..3596845 100644 (file)
@@ -106,7 +106,7 @@ class RepoMakerTest(unittest.TestCase):
     def test_add_repo(self):
         """Test converting repository to the download structure."""
         with tempdir(prefix='repomaker.', suffix='.inrepo') as in_repo:
-            prepare_dir(in_repo, ['src', 'noarch', 'i586', 'x86_64'])
+            prepare_dir(in_repo, ['src', 'noarch', 'i586', 'i686', 'x86_64'])
             with tempdir(prefix='repomaker.', suffix='.outrepo') as out_repo:
                 maker = RepoMaker('test-id', out_repo)
                 maker.add_repo(in_repo, 'testrepo', ('i586', 'x86_64'),
@@ -119,12 +119,18 @@ class RepoMakerTest(unittest.TestCase):
                          'pkg2-0.1-2.3.src.rpm', 'pkg2-1.2-3.4.src.rpm',
                          'pkg3-0.1-2.3.src.rpm', 'pkg3-1.2-3.4.src.rpm'],
                     'ia32/packages':
-                        ['pkg1-0.1-2.3.i586.rpm', 'pkg1-0.1-2.3.noarch.rpm',
-                         'pkg1-1.2-3.4.i586.rpm', 'pkg1-1.2-3.4.noarch.rpm',
-                         'pkg2-0.1-2.3.i586.rpm', 'pkg2-0.1-2.3.noarch.rpm',
-                         'pkg2-1.2-3.4.i586.rpm', 'pkg2-1.2-3.4.noarch.rpm',
-                         'pkg3-0.1-2.3.i586.rpm', 'pkg3-0.1-2.3.noarch.rpm',
-                         'pkg3-1.2-3.4.i586.rpm', 'pkg3-1.2-3.4.noarch.rpm'],
+                        ['pkg1-0.1-2.3.i586.rpm', 'pkg1-0.1-2.3.i686.rpm',
+                         'pkg1-0.1-2.3.noarch.rpm',
+                         'pkg1-1.2-3.4.i586.rpm', 'pkg1-1.2-3.4.i686.rpm',
+                         'pkg1-1.2-3.4.noarch.rpm',
+                         'pkg2-0.1-2.3.i586.rpm', 'pkg2-0.1-2.3.i686.rpm',
+                         'pkg2-0.1-2.3.noarch.rpm',
+                         'pkg2-1.2-3.4.i586.rpm', 'pkg2-1.2-3.4.i686.rpm',
+                         'pkg2-1.2-3.4.noarch.rpm',
+                         'pkg3-0.1-2.3.i586.rpm', 'pkg3-0.1-2.3.i686.rpm',
+                         'pkg3-0.1-2.3.noarch.rpm',
+                         'pkg3-1.2-3.4.i586.rpm', 'pkg3-1.2-3.4.i686.rpm',
+                         'pkg3-1.2-3.4.noarch.rpm'],
                     'ia32/debug': [],
                     'x86_64/packages':
                         ['pkg1-0.1-2.3.noarch.rpm', 'pkg1-0.1-2.3.x86_64.rpm',