From bd81b92c6cfb86201ed00bf41986b78f7462bc3b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 18 Sep 2011 22:57:41 +0200 Subject: [PATCH] [tests] db: make package files generated on amd64 work on other arches as well --- libraries/tests/db.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/tests/db.py b/libraries/tests/db.py index a3c86d72a..605da79ed 100644 --- a/libraries/tests/db.py +++ b/libraries/tests/db.py @@ -20,6 +20,12 @@ import entropy.tools class EntropyRepositoryTest(unittest.TestCase): def setUp(self): + # since package files have been produced on amd64, add the same + # arch to etpConst['keywords'] to avoid atomMatch failures on x86 + # and arm/other arches. + self._original_keywords = etpConst['keywords'].copy() + etpConst['keywords'].add("~amd64") + etpConst['keywords'].add("amd64") sys.stdout.write("%s called\n" % (self,)) sys.stdout.flush() self.Client = Client(installed_repo = -1, indexing = False, @@ -50,6 +56,7 @@ class EntropyRepositoryTest(unittest.TestCase): # right before terminating the process self.Client.destroy() self.Client.shutdown() + etpConst['keywords'] = self._original_keywords.copy() def __open_test_db(self, tmp_path): return self.Client.open_temp_repository(name = self.test_db_name,