Skip to contentSkip to conversation

oeqa/runtime: fix regression in minidebuginfo test

PATCH New [email protected] 1 participant 1 message May 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 oeqa/runtime: fix regression in minidebuginfo test

From: Etienne Cordonnier <[email protected]>

The builtin command "sleep" was getting executed instead of the busybox binary. Hence "pidof sleep" was empty and the test was failing.

---
 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 5481e1d840..8bf571663b 100644
@@ -145,7 +145,8 @@ class SystemdServiceTests(SystemdTest):
         Verify that call-stacks generated by systemd-coredump contain symbolicated call-stacks,
         extracted from the minidebuginfo metadata (.gnu_debugdata elf section).
         """
-        t_thread = threading.Thread(target=self.target.run, args=("ulimit -c unlimited && sleep 1000",))
+        # use "env sleep" instead of "sleep" to avoid calling the shell builtin function
+        t_thread = threading.Thread(target=self.target.run, args=("ulimit -c unlimited && env sleep 1000",))
         t_thread.start()
         time.sleep(1)
 
Signature · 1 line
2.34.1