]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/runtime: fix regression in minidebuginfo test
authorEtienne Cordonnier <ecordonnier@snap.com>
Thu, 30 May 2024 15:10:52 +0000 (17:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 May 2024 15:58:32 +0000 (16:58 +0100)
The builtin command "sleep" was getting executed instead of the busybox binary.
Hence "pidof sleep" was empty and the test was failing.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/systemd.py

index 5481e1d840d7618d2f30c4408a2fd6ac7a876874..8bf571663bbfdc1d40f8b806195e89763daa4dd4 100644 (file)
@@ -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)