nixpkgs/nixos/lib/test-driver
Maximilian Bosch 11ff96a679
nixos/test-driver: use RequestedAssertionFailed/TestScriptError in Machine class
I think it's reasonable to also have this kind of visual distinction
here between test failures and actual errors from the test framework.

A failing `machine.require_unit_state` now lookgs like this for
instance:

    !!! Traceback (most recent call last):
    !!!   File "<string>", line 3, in <module>
    !!!     machine.require_unit_state("postgresql","active")
    !!!
    !!! RequestedAssertionFailed: Expected unit 'postgresql' to to be in state 'active' but it is in state 'inactive'

Co-authored-by: Benoit de Chezelles <bew@users.noreply.github.com>
2025-03-20 13:20:37 +00:00
..
src nixos/test-driver: use RequestedAssertionFailed/TestScriptError in Machine class 2025-03-20 13:20:37 +00:00
default.nix nixos/test-driver: avoid lib.fileset 2024-12-31 02:30:18 +00:00
nixos-test-driver-docstrings.nix nixos/test-driver: avoid lib.fileset 2024-12-31 02:30:18 +00:00
shell.nix nixos-test-driver: avoid top-level with in shell.nix 2024-07-29 19:46:18 +02:00