diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-04-10 01:15:13 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-10 01:15:13 +0200 |
| commit | e25eca35ff04e4234d0376fbb9a8e146869772c8 (patch) | |
| tree | 11b817fae0ddfb0d6b6ebf7ecac832568ce4fd66 /tests/services.scm | |
| parent | d10cee786522ca2d321fb942a4da14feaaae091a (diff) | |
services: herd: Adjust to <live-service> changes.
This is a followup to a2c759c8304c461d096ab763568e7f71546ff4e8.
* guix/scripts/system/reconfigure.scm (running-services): Fill in the
'transient?' field of <live-service>.
* tests/services.scm ("shepherd-service-upgrade: one unchanged, one upgraded, one new")
("shepherd-service-upgrade: service depended on is not unloaded")
("shepherd-service-upgrade: obsolete services that depend on each
other"): Adjust calls to 'live-service'.
Diffstat (limited to 'tests/services.scm')
| -rw-r--r-- | tests/services.scm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/services.scm b/tests/services.scm index 572fe381645..03c490100b6 100644 --- a/tests/services.scm +++ b/tests/services.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2015-2019, 2022 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 5 | ;;; |
| @@ -212,9 +212,9 @@ | |||
| 212 | ;; because it is not currently running. 'baz' is loaded because it's | 212 | ;; because it is not currently running. 'baz' is loaded because it's |
| 213 | ;; a new service. | 213 | ;; a new service. |
| 214 | (shepherd-service-upgrade | 214 | (shepherd-service-upgrade |
| 215 | (list (live-service '(foo) '() #t) | 215 | (list (live-service '(foo) '() #f #t) |
| 216 | (live-service '(bar) '() #f) | 216 | (live-service '(bar) '() #f #f) |
| 217 | (live-service '(root) '() #t)) ;essential! | 217 | (live-service '(root) '() #f #t)) ;essential! |
| 218 | (list (shepherd-service (provision '(foo)) | 218 | (list (shepherd-service (provision '(foo)) |
| 219 | (start #t)) | 219 | (start #t)) |
| 220 | (shepherd-service (provision '(bar)) | 220 | (shepherd-service (provision '(bar)) |
| @@ -234,9 +234,9 @@ | |||
| 234 | ;; unloaded because 'foo' depends on it. 'foo' gets replaced but it | 234 | ;; unloaded because 'foo' depends on it. 'foo' gets replaced but it |
| 235 | ;; must be restarted manually. | 235 | ;; must be restarted manually. |
| 236 | (shepherd-service-upgrade | 236 | (shepherd-service-upgrade |
| 237 | (list (live-service '(foo) '(bar) #t) | 237 | (list (live-service '(foo) '(bar) #f #t) |
| 238 | (live-service '(bar) '() #t) ;still used! | 238 | (live-service '(bar) '() #f #t) ;still used! |
| 239 | (live-service '(baz) '() #t)) | 239 | (live-service '(baz) '() #f #t)) |
| 240 | (list (shepherd-service (provision '(foo)) | 240 | (list (shepherd-service (provision '(foo)) |
| 241 | (start #t))))) | 241 | (start #t))))) |
| 242 | (lambda (unload restart) | 242 | (lambda (unload restart) |
| @@ -251,9 +251,9 @@ | |||
| 251 | ;; 'foo', 'bar', and 'baz' depend on each other, but all of them are | 251 | ;; 'foo', 'bar', and 'baz' depend on each other, but all of them are |
| 252 | ;; obsolete, and thus should be unloaded. | 252 | ;; obsolete, and thus should be unloaded. |
| 253 | (shepherd-service-upgrade | 253 | (shepherd-service-upgrade |
| 254 | (list (live-service '(foo) '(bar) #t) ;obsolete | 254 | (list (live-service '(foo) '(bar) #f #t) ;obsolete |
| 255 | (live-service '(bar) '(baz) #t) ;obsolete | 255 | (live-service '(bar) '(baz) #f #t) ;obsolete |
| 256 | (live-service '(baz) '() #t)) ;obsolete | 256 | (live-service '(baz) '() #f #t)) ;obsolete |
| 257 | (list (shepherd-service (provision '(qux)) | 257 | (list (shepherd-service (provision '(qux)) |
| 258 | (start #t))))) | 258 | (start #t))))) |
| 259 | (lambda (unload restart) | 259 | (lambda (unload restart) |
