tests: use warning-expectations options

Deprecated the old `test.check*` options.
This commit is contained in:
Matt Sturgeon 2024-12-27 14:39:20 +00:00
parent 24e3b11b23
commit ae612f8249
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 26 additions and 10 deletions

View file

@ -94,12 +94,15 @@ in
checkWarnings = lib.mkOption {
type = lib.types.bool;
description = "Whether to check `config.warnings` in the test.";
apply = x: lib.warnIfNot x "`test.checkWarnings = false` is replaced with `test.warnings = [ ]`." x;
default = true;
};
checkAssertions = lib.mkOption {
type = lib.types.bool;
description = "Whether to check `config.assertions` in the test.";
apply =
x: lib.warnIfNot x "`test.checkAssertions = false` is replaced with `test.assertions = [ ]`." x;
default = true;
};