Skip to content

tests/ui-smoke: find the GUI process under qemu-user - #4965

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:ui-smoke-quit-slow
Open

grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:ui-smoke-quit-slow

Conversation

@grandixximo

@grandixximo grandixximo commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Some ubuntu-24.04-arm runners cannot run 32-bit ARM, so the armhf job falls back to QEMU (the "Check for native 32-bit execution" step logs "exec format error"). Under qemu-user binfmt a process's argv[0] is the emulator and the python interpreter is argv[1]. find_gui_pid only looked at argv[0], never matched the GUI, and the gmoccapy, qtdragon and touchy quit tests failed with "GUI process not found" while the GUI was running. It now looks at argv[0] and argv[1].

crashdump_report also printed "crash: no readable core dump" on every run, which made the failure read as a crash. It now prints that only when linuxcnc.err holds a crash marker, the same markers drive.py looks for.

Tested locally: the three quit tests pass; with -d a clean run no longer prints the crash line; a process with a qemu-style command line (emulator, python3, .../bin/gui) is found by the new check and missed by the old one. I have no QEMU here, so the armhf CI run is the real test.

Fixes #4962

Some ubuntu-24.04-arm runners cannot run 32-bit ARM, so the armhf job
falls back to QEMU. Under qemu-user binfmt a process's argv[0] is the
emulator and the interpreter is argv[1]. find_gui_pid only looked at
argv[0], never matched the GUI, and the gmoccapy, qtdragon and touchy
quit tests failed with "GUI process not found" while the GUI was up.
Look at argv[0] and argv[1].

crashdump_report also printed "crash: no readable core dump" on every
run, which made the failure read as a crash. Print it only when
linuxcnc.err holds a crash marker, the same ones drive.py looks for.

Fixes LinuxCNC#4962
@grandixximo grandixximo changed the title tests/ui-smoke: give the quit tests time on a slow runner tests/ui-smoke: find the GUI process under qemu-user Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Armhf fails smoke-ui/*-quit tests

1 participant