tmt.checks.internal package

Submodules

tmt.checks.internal.abort module

class tmt.checks.internal.abort.Abort(*args: Any, **kwargs: Any)

Bases: CheckPlugin[AbortCheck]

Check for test aborts during execution.

This check fails when tests are aborted before completion.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.50.

classmethod after_test(*, check: AbortCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]
class tmt.checks.internal.abort.AbortCheck(how: str = 'internal/abort', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/abort'

tmt.checks.internal.guest module

class tmt.checks.internal.guest.GuestCheck(how: str = 'internal/guest', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/guest'
class tmt.checks.internal.guest.GuestFailures(*args: Any, **kwargs: Any)

Bases: CheckPlugin[GuestCheck]

Check for guest errors during test execution.

This check fails when guest related errors occur during test execution, such as reboot or reconnect timeouts.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.53.

classmethod after_test(*, check: GuestCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]

tmt.checks.internal.interrupt module

class tmt.checks.internal.interrupt.Interrupt(*args: Any, **kwargs: Any)

Bases: CheckPlugin[InterruptCheck]

Check for signal interruptions during test execution.

This check fails when tests are interrupted by SIGINT or SIGTERM signals.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.50.

classmethod after_test(*, check: InterruptCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]
class tmt.checks.internal.interrupt.InterruptCheck(how: str = 'internal/interrupt', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/interrupt'

tmt.checks.internal.invocation module

class tmt.checks.internal.invocation.Invocation(*args: Any, **kwargs: Any)

Bases: CheckPlugin[InvocationCheck]

Check for uncategorized invocation errors during test execution.

This check fails when tests encounter errors that are not covered by more specific checks.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.50.

classmethod after_test(*, check: InvocationCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]
class tmt.checks.internal.invocation.InvocationCheck(how: str = 'internal/invocation', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/invocation'

tmt.checks.internal.permission module

class tmt.checks.internal.permission.Permission(*args: Any, **kwargs: Any)

Bases: CheckPlugin[PermissionCheck]

Check for permission issues during execution.

This check fails when tests encounter permission-related errors.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.50.

classmethod after_test(*, check: PermissionCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]
class tmt.checks.internal.permission.PermissionCheck(how: str = 'internal/permission', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/permission'

tmt.checks.internal.timeout module

class tmt.checks.internal.timeout.Timeout(*args: Any, **kwargs: Any)

Bases: CheckPlugin[TimeoutCheck]

Check for test timeouts during execution.

This check fails when tests exceed their maximum allowed duration.

Note

This is an internal check, and it cannot be enabled or disabled by test metadata.

Added in version 1.50.

classmethod after_test(*, check: TimeoutCheck, invocation: TestInvocation, environment: Environment | None = None, logger: Logger) list[CheckResult]
class tmt.checks.internal.timeout.TimeoutCheck(how: str = 'internal/timeout', enabled: bool = True, result: tmt.checks.CheckResultInterpret = <CheckResultInterpret.RESPECT: 'respect'>)

Bases: InternalCheck

how: str = 'internal/timeout'

Module contents

class tmt.checks.internal.InternalCheck(how: str, enabled: bool = True, result: CheckResultInterpret = CheckResultInterpret.RESPECT)

Bases: Check

Represents an internal check for various test execution issues.

classmethod create_internal(logger: Logger) Check

Create an internal check instance.

Parameters:

logger – logger to use for logging.

Returns:

a new instance of the check.