diff options
| author | Etienne Cordonnier <ecordonnier@snap.com> | 2024-05-30 17:10:52 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-31 16:58:36 +0100 |
| commit | afe7a3a3841a054a4b0a947337c4de9039ee579d (patch) | |
| tree | 0a778b19a343f8101d84b6e09b2ed204ba42c98b /meta | |
| parent | e3e7862f0bb00742e2a78e1c57cff44fd646a7ab (diff) | |
| download | poky-afe7a3a3841a054a4b0a947337c4de9039ee579d.tar.gz | |
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.
(From OE-Core rev: 3188f3f0718b8a59bc9e3cae4cdf74e82bdb86c3)
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/systemd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/systemd.py b/meta/lib/oeqa/runtime/cases/systemd.py index 5481e1d840..8bf571663b 100644 --- a/meta/lib/oeqa/runtime/cases/systemd.py +++ b/meta/lib/oeqa/runtime/cases/systemd.py | |||
| @@ -145,7 +145,8 @@ class SystemdServiceTests(SystemdTest): | |||
| 145 | Verify that call-stacks generated by systemd-coredump contain symbolicated call-stacks, | 145 | Verify that call-stacks generated by systemd-coredump contain symbolicated call-stacks, |
| 146 | extracted from the minidebuginfo metadata (.gnu_debugdata elf section). | 146 | extracted from the minidebuginfo metadata (.gnu_debugdata elf section). |
| 147 | """ | 147 | """ |
| 148 | t_thread = threading.Thread(target=self.target.run, args=("ulimit -c unlimited && sleep 1000",)) | 148 | # use "env sleep" instead of "sleep" to avoid calling the shell builtin function |
| 149 | t_thread = threading.Thread(target=self.target.run, args=("ulimit -c unlimited && env sleep 1000",)) | ||
| 149 | t_thread.start() | 150 | t_thread.start() |
| 150 | time.sleep(1) | 151 | time.sleep(1) |
| 151 | 152 | ||
