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.

Tests should stop if subprocess or setup scripts fail #53

@aaaaalbert

Description

@aaaaalbert

When running unit tests that employ a ut_MODULE_subprocess.py or ut_MODULE_setup.py script, an error in these scripts does not hinder utf.py to try to run other test files following the assumed initialization / setup. In the "best" case, the subsequent tests will fail and report so, in the worst case, the tests will wait for a precondition to be fulfilled by init / setup, and thus hang indefinitely. (See SeattleTestbed/seash#80 for an example of the latter).

utf should use subprocess.communicate() to check for errors in any processes it spawns, and stop if errors are encountered. Similarly, any ut_MODULE_subprocess scripts need to check for (and raise) errors of ut_MODULE_setup scripts they spawn.

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