summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-25 11:42:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-11 22:28:38 +0000
commitb72fe527c9bdb96ad38fffa5a0d44f6a39cf5e2b (patch)
treeb62d535acbe5dfa291445cbe13e77320cc288ca8 /meta/lib/oeqa
parent9e75884e0ade308b3cab242756d3b7c90576d27f (diff)
downloadpoky-b72fe527c9bdb96ad38fffa5a0d44f6a39cf5e2b.tar.gz
oeqa/selftest/tinfoil: Update to use test command
We've had IO load issues on the autobuilder with this test. Avoid those by using a specilised test command instead. (From OE-Core rev: 351b02feb9cb680aa3dbe4c8ea4162a6456a469f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 106445b1eb74fc37e03c72a0c011541b50a16c19) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/cases/tinfoil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py
index a51c6048d3..0204537d49 100644
--- a/meta/lib/oeqa/selftest/cases/tinfoil.py
+++ b/meta/lib/oeqa/selftest/cases/tinfoil.py
@@ -94,14 +94,13 @@ class TinfoilTests(OESelftestTestCase):
94 pass 94 pass
95 95
96 pattern = 'conf' 96 pattern = 'conf'
97 res = tinfoil.run_command('findFilesMatchingInDir', pattern, 'conf/machine') 97 res = tinfoil.run_command('testCookerCommandEvent', pattern)
98 self.assertTrue(res) 98 self.assertTrue(res)
99 99
100 eventreceived = False 100 eventreceived = False
101 commandcomplete = False 101 commandcomplete = False
102 start = time.time() 102 start = time.time()
103 # Wait for maximum 60s in total so we'd detect spurious heartbeat events for example 103 # Wait for maximum 60s in total so we'd detect spurious heartbeat events for example
104 # The test is IO load sensitive too
105 while (not (eventreceived == True and commandcomplete == True) 104 while (not (eventreceived == True and commandcomplete == True)
106 and (time.time() - start < 60)): 105 and (time.time() - start < 60)):
107 # if we received both events (on let's say a good day), we are done 106 # if we received both events (on let's say a good day), we are done
@@ -111,7 +110,8 @@ class TinfoilTests(OESelftestTestCase):
111 commandcomplete = True 110 commandcomplete = True
112 elif isinstance(event, bb.event.FilesMatchingFound): 111 elif isinstance(event, bb.event.FilesMatchingFound):
113 self.assertEqual(pattern, event._pattern) 112 self.assertEqual(pattern, event._pattern)
114 self.assertIn('qemuarm.conf', event._matches) 113 self.assertIn('A', event._matches)
114 self.assertIn('B', event._matches)
115 eventreceived = True 115 eventreceived = True
116 elif isinstance(event, logging.LogRecord): 116 elif isinstance(event, logging.LogRecord):
117 continue 117 continue