+13
nixos/doc/manual/development/writing-nixos-tests.section.md
+13
nixos/doc/manual/development/writing-nixos-tests.section.md
···To fail tests early when certain invariables are no longer met (instead of waiting for the build to time out), the decorator `polling_condition` is provided. For example, if we are testing a program `foo` that should not quit after being started, we might write the following:
···To fail tests early when certain invariables are no longer met (instead of waiting for the build to time out), the decorator `polling_condition` is provided. For example, if we are testing a program `foo` that should not quit after being started, we might write the following:
+13
nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
+13
nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
···
+2
nixos/lib/test-driver/default.nix
+2
nixos/lib/test-driver/default.nix
nixos/lib/test-driver/test_driver/py.typed
nixos/lib/test-driver/test_driver/py.typed
This is a binary file and will not be displayed.
+42
nixos/lib/test-script-prepend.py
+42
nixos/lib/test-script-prepend.py
···
···
+28
-5
nixos/lib/testing-python.nix
+28
-5
nixos/lib/testing-python.nix
·····················
······+in nodesList ++ lib.optional (lib.length nodesList == 1 && !lib.elem "machine" nodesList) "machine";···············