diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2022-06-03 14:22:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 14:22:13 +0200 |
commit | 793180cf557e9f5368466f62d6c54a8887895d3e (patch) | |
tree | 4316f53c3cceccb15e24358406f7b299cbb6cb77 /nixos/doc/manual/development/writing-nixos-tests.section.md | |
parent | 2a750c302669a59a13d8a2a6fa038cbc6e6cb134 (diff) | |
parent | b92013d842d28cd3d53cdf168e4dd1042cdac4e7 (diff) |
Merge branch 'master' into 172325-nixostest-override-python-pkgs-additional-param
Diffstat (limited to 'nixos/doc/manual/development/writing-nixos-tests.section.md')
-rw-r--r-- | nixos/doc/manual/development/writing-nixos-tests.section.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/writing-nixos-tests.section.md b/nixos/doc/manual/development/writing-nixos-tests.section.md index fff8873e61d0d..f4f4056ad9889 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.section.md +++ b/nixos/doc/manual/development/writing-nixos-tests.section.md @@ -332,6 +332,19 @@ repository): ''; ``` +Similarly, the type checking of test scripts can be disabled in the following +way: + +```nix +import ./make-test-python.nix { + skipTypeCheck = true; + nodes.machine = + { config, pkgs, ... }: + { configuration… + }; +} +``` + ## Failing tests early {#ssec-failing-tests-early} 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: |