Skip to content

fix(autoware_static_centerline_generator): suppress GUI window in launch tests #391

@xmfcx

Description

@xmfcx

Problem

The GUI launch test (test_static_centerline_generator_gui_launch.test.py) opens a visible PyQt5 window (centerline_updater_helper.py) during colcon test. This is disruptive when running tests locally, and unnecessary since the test only needs the Qt event loop, not a visible window.


Image

The test also takes ~67s due to generous timeout values in spin_once calls and a hardcoded time.sleep(3).

Proposed fix

  • Set QT_QPA_PLATFORM=offscreen in the test environment to suppress the visible window
  • Consider tightening the timeout values (setUp uses 60s timeouts, test uses 30s timeouts)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions