From fc9176c75b2df5b6b73a5cf449998499b28c7c91 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 27 Dec 2024 21:09:48 +0000 Subject: [PATCH] modules/test: hide the deprecated `check*` options --- modules/top-level/test.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/top-level/test.nix b/modules/top-level/test.nix index ef27d60943..1f007ec513 100644 --- a/modules/top-level/test.nix +++ b/modules/top-level/test.nix @@ -100,17 +100,19 @@ in checkWarnings = lib.mkOption { type = lib.types.bool; - description = "Whether to check `config.warnings` in the test."; + description = "Whether to check `config.warnings` in the test. (deprecated)"; apply = x: lib.warnIfNot x "`test.checkWarnings = false` is replaced with `test.warnings = [ ]`." x; default = true; + visible = false; }; checkAssertions = lib.mkOption { type = lib.types.bool; - description = "Whether to check `config.assertions` in the test."; + description = "Whether to check `config.assertions` in the test. (deprecated)"; apply = x: lib.warnIfNot x "`test.checkAssertions = false` is replaced with `test.assertions = [ ]`." x; default = true; + visible = false; }; warnings = lib.mkOption {