diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-07-03 17:13:14 +0200 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-07-04 13:04:45 +0200 |
| commit | 0dbd2c3b089d50bdfbed86916d06cc4f0da8893d (patch) | |
| tree | 280fef8ba5e0306df2c44827ac912673fe762cf0 /gnu/installer | |
| parent | ae004cead8912d1ff963f0914c5583537be875bd (diff) | |
installer: tests: Expect but do not select other services by default.
* gnu/installer/tests.scm (choose-services): Accept a new
choose-other-service? keyword argument, defaulting to false.
Expect an "Other services" checkbox-list. Update docstring.
Diffstat (limited to 'gnu/installer')
| -rw-r--r-- | gnu/installer/tests.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/installer/tests.scm b/gnu/installer/tests.scm index 8ccd327a7c1..12d1d916082 100644 --- a/gnu/installer/tests.scm +++ b/gnu/installer/tests.scm | |||
| @@ -220,8 +220,9 @@ ROOT-PASSWORD, and USERS." | |||
| 220 | (string-contains service "NSS")))) | 220 | (string-contains service "NSS")))) |
| 221 | (choose-network-management-tool? | 221 | (choose-network-management-tool? |
| 222 | (lambda (service) | 222 | (lambda (service) |
| 223 | (string-contains service "DHCP")))) | 223 | (string-contains service "DHCP"))) |
| 224 | "Converse over PORT to choose networking services." | 224 | (choose-other-service? (const #f))) |
| 225 | "Converse over PORT to choose services." | ||
| 225 | (define desktop-environments '()) | 226 | (define desktop-environments '()) |
| 226 | 227 | ||
| 227 | (converse port | 228 | (converse port |
| @@ -240,7 +241,11 @@ ROOT-PASSWORD, and USERS." | |||
| 240 | (multiple-choices? #f) | 241 | (multiple-choices? #f) |
| 241 | (items ,services)) | 242 | (items ,services)) |
| 242 | (null? desktop-environments) | 243 | (null? desktop-environments) |
| 243 | (find choose-network-management-tool? services)))) | 244 | (find choose-network-management-tool? services)) |
| 245 | |||
| 246 | ((checkbox-list (title "Other services") (text _) | ||
| 247 | (items ,services)) | ||
| 248 | (filter choose-other-service? services)))) | ||
| 244 | 249 | ||
| 245 | (define (edit-configuration-file file) | 250 | (define (edit-configuration-file file) |
| 246 | "Edit FILE, an operating system configuration file generated by the | 251 | "Edit FILE, an operating system configuration file generated by the |
