Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

ut_*_subprocess should signal readiness to utf.py #70

@aaaaalbert

Description

@aaaaalbert

Unit tests may specify separate subprocess (i.e. server/service), setup, and shutdown scripts to be executed while/before/after test cases are executed. utf.py is responsible for the sequencing, i.e.

  • Spawn ut_MODULE_subprocess.py and allow it 30 seconds to start
  • Run ut_MODULE_setup.py
  • Run the other ut_MODULE_* tests in alphabetical order
  • Run ut_MODULE_shutdown.py
  • Signal to ut_MODULE_subprocess.py to stop now

The first point is crucial, as no precautions are taken to verify that the subprocess has really started by the time the wait period elapsed. This bites us, e.g., in the nodemanager unit tests on OpenWrt.

utf.py should thus use active signalling for starting the subprocess, too.

Metadata

Metadata

Assignees

No one assigned

    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