skip test under qemu emulation

This commit is contained in:
Kovid Goyal 2026-11-18 20:17:58 +05:30
parent 2e62f9c96b
commit e87f68becd
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -497,6 +497,10 @@ read -r _
c.pid = p.pid
try:
command_pid = int(self._read_line(p))
if cmdline_of_pid(command_pid)[0] != command[0]:
# Under emulation, such as qemu-user via binfmt_misc, the
# cmdline of processes starts with the emulator
self.skipTest('Running under emulation')
self._assert_root_pid_settles(c, command_pid)
finally:
self._stop_tree(p)