File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 7878 } ;
7979 tests = mkOption {
8080 description = "at least one test for the example" ;
81- type = with types ; attrsOf test ;
81+ type = with types ; lazyAttrsOf test ;
8282 default = { } ;
8383 } ;
8484 links = mkOption {
Original file line number Diff line number Diff line change 125125 '' ;
126126 } ;
127127 examples = mkOption {
128- type = with types ; attrsOf example ;
128+ type = with types ; lazyAttrsOf example ;
129129 description = ''
130130 Configurations that illustrate how to set up the ${ type } .
131131
Original file line number Diff line number Diff line change 132132 we can still reduce granularity and move all examples to the application level.
133133 */
134134 examples = mkOption {
135- type = attrsOf example ;
135+ type = lazyAttrsOf example ;
136136 description = "A configuration of an existing application module that illustrates how to use it" ;
137137 default = { } ;
138138 } ;
141141 # Without this field, many applications will appear entirely untested although there's actually *some* assurance that *something* works.
142142 # Eventually we want to move to documentable tests exclusively, and then remove this field, but this may take a very long time.
143143 tests = mkOption {
144- type = attrsOf test ;
144+ type = lazyAttrsOf test ;
145145 default = { } ;
146146 description = "NixOS test that ensures project components behave as intended" ;
147147 } ;
Original file line number Diff line number Diff line change 100100 else if test ? meta . broken && test . meta . broken then
101101 null
102102 else
103- pkgs . testers . runNixOSTest args ;
103+ lib . lazyDerivation { derivation = pkgs . testers . runNixOSTest args ; } ;
104104
105105 callTest =
106106 module :
128128 # This is because test nodes are eagerly evaluated to create the
129129 # driver's `vmStartScripts` (see `nixos/lib/testing/driver.nix` in
130130 # NixOS).
131- type = with types ; nullOr ( coercedTo ( either deferredModule package ) callTest ( nullOr package ) ) ;
131+ type =
132+ with types ;
133+ nullOr ( coercedTo ( either deferredModule package ) callTest ( nullOr deferredModule ) ) ;
132134 default = null ;
133135 description = "NixOS test module" ;
134136 } ;
You can’t perform that action at this time.
0 commit comments