Skip to content

tests/ui-smoke: give the quit tests time on a slow runner - #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

Copy link
Copy Markdown
Contributor

On a slow armhf runner the gmoccapy, qtdragon and touchy quit tests failed with "GUI process not found". After task is up, the launcher still loads halui and the remaining HAL files and waits for traj before it starts the GUI. On that runner this took longer than the 60 loop passes the test waits, so the test killed linuxcnc while the GUI was still coming up. The output also ended with "crash: no readable core dump", which crashdump_report prints on every run, so it read as a crash.

The quit test now waits 120s of wall time for the GUI, and the failure message says whether linuxcnc was still running. The no-core line is printed 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 copy of the test pointed at a GUI name that doesn't exist fails after 120s with the new message.

Fixes #4962

On a slow armhf runner the quit tests failed with "GUI process not
found": the launcher still had halui, the remaining HAL files and the
traj wait to get through before starting the GUI, and the 60 pass wait
ran out first. The report also ended with "crash: no readable core
dump", which crashdump_report prints on every run, so it read as a crash.

Wait 120s of wall time (SECONDS) for the GUI instead of 60 loop passes,
and say in the failure whether linuxcnc was still running. Print the
no-core line only when linuxcnc.err holds a crash marker, the same ones
drive.py looks for.

Fixes LinuxCNC#4962
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