Skip to contentSkip to conversation

oeqa/runtime: make minidebuginfo test work with coreutils

PATCH New [email protected] 1 participant 1 message Jun 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/runtime: make minidebuginfo test work with coreutils

From: Etienne Cordonnier <[email protected]>

The test was failing with core-image-full-cmdline which uses sleep from coreutils instead of sleep from busybox.

---
 meta/lib/oeqa/runtime/cases/systemd.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/systemd.py +2 -1
index 8bf571663b..80fdae240a 100644
@@ -157,7 +157,8 @@ class SystemdServiceTests(SystemdTest):
 
         (status, output) = self.target.run('coredumpctl info')
         self.assertEqual(status, 0, msg='MiniDebugInfo Test failed: %s' % output)
-        self.assertEqual('sleep_for_duration (busybox.nosuid' in output, True, msg='Call stack is missing minidebuginfo symbols (functions shown as "n/a"): %s' % output)
+        self.assertEqual('sleep_for_duration (busybox.nosuid' in output or 'xnanosleep (sleep.coreutils' in output,
+                         True, msg='Call stack is missing minidebuginfo symbols (functions shown as "n/a"): %s' % output)
 
 class SystemdJournalTests(SystemdTest):
 
Signature · 1 line
2.36.1.vfs.0.0