Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labgrid: pytestplugin: hooks: fix multiple start stop for StepLogger #1474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 13, 2024

  1. labgrid: pytestplugin: hooks: fix multiple start stop for StepLogger

    pytests pytester can be used to run pytests inside pytest.
    This results in nested calls of pytest_configure and so
    multiple starts and stops of the StepLogger.
    
    Only start StepLogger if it is not already active.
    This solution will run the cleanup hook in the "outer" pytest instance.
    
    Signed-off-by: Jan Remmet <[email protected]>
    jremmet committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    d0a6f79 View commit details
    Browse the repository at this point in the history