From: Etienne Cordonnier Date: Thu, 30 May 2024 15:10:52 +0000 (+0200) Subject: oeqa/runtime: fix regression in minidebuginfo test X-Git-Tag: uninative-4.6~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3188f3f0718b8a59bc9e3cae4cdf74e82bdb86c3;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/runtime: fix regression in minidebuginfo test 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/runtime/cases/systemd.py b/meta/lib/oeqa/runtime/cases/systemd.py index 5481e1d840d..8bf571663bb 100644 --- a/meta/lib/oeqa/runtime/cases/systemd.py +++ b/meta/lib/oeqa/runtime/cases/systemd.py @@ -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)