Skip to contentSkip to conversation

oeqa/selftest/tinfoil: Drop test for functionality removed upstream

PATCH New Richard Purdie 1 participant 2 messages Mar 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 oeqa/selftest/tinfoil: Drop test for functionality removed upstream

bitbake dropped support for this piece of functionality (the test was the only user), drop the test too.

---
 meta/lib/oeqa/selftest/cases/tinfoil.py | 13 -------------
 1 file changed, 13 deletions(-)
meta/lib/oeqa/selftest/cases/tinfoil.py +0 -13
index 42a1b6b4f4d..d1aa7b9afdc 100644
@@ -65,19 +65,6 @@ class TinfoilTests(OESelftestTestCase):
             localdata.setVar('PN', 'hello')
             self.assertEqual('hello', localdata.getVar('BPN'))
 
-    def test_parse_recipe_initial_datastore(self):
-        with bb.tinfoil.Tinfoil() as tinfoil:
-            tinfoil.prepare(config_only=False, quiet=2)
-            testrecipe = 'mdadm'
-            best = tinfoil.find_best_provider(testrecipe)
-            if not best:
-                self.fail('Unable to find recipe providing %s' % testrecipe)
-            dcopy = bb.data.createCopy(tinfoil.config_data)
-            dcopy.setVar('MYVARIABLE', 'somevalue')
-            rd = tinfoil.parse_recipe_file(best[3], config_data=dcopy)
-            # Check we can get variable values
-            self.assertEqual('somevalue', rd.getVar('MYVARIABLE'))
-
     def test_list_recipes(self):
         with bb.tinfoil.Tinfoil() as tinfoil:
             tinfoil.prepare(config_only=False, quiet=2)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 oeqa/qemurunner: Don't print a warning for harmless exception

Printing a warning for something which is harmless just causes the people monitoring the autobuilder more work. Silently ignore this race.

---
 meta/lib/oeqa/utils/qemurunner.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/utils/qemurunner.py +2 -1
index ed74ea8fadf..7ae309845a2 100644
@@ -430,7 +430,8 @@ class QemuRunner:
             try:
                 os.remove(self.qemu_pidfile)
             except FileNotFoundError as e:
-                self.logger.warning('qemu pidfile is no longer present')
+                # We raced, ignore
+                pass
         if self.monitorpipe:
             self.monitorpipe.close()
 
Signature · 1 line
2.25.1