guix/tests
Ludovic Courtès 1819512073
services: 'modify-services' preserves service ordering.
Fixes <https://issues.guix.gnu.org/63921>.

The regression was introduced in
dbbc7e9461, which changed the order of
services.  As a result, someone using 'modify-services' could find
themselves with incorrect ordering of expressions in the "boot" script,
whereby the cleanup expressions would come after (execl ".../shepherd").
This, in turn, would lead shepherd to error out at boot with EADDRINUSE
on /var/run/shepherd/socket.

* gnu/services.scm (%delete-service, %apply-clauses): Remove.
(clause-alist): New macro.
(apply-clauses): New procedure.
(modify-services): Use it.  Adjust docstring.
* tests/services.scm ("modify-services: do nothing"): Remove 'sort' call.
("modify-services: delete service"): Likewise, and add 't4' service.
("modify-services: change value"): Remove 'sort' call and fix expected value.
2023-06-06 11:54:39 +02:00
..
keys
services services: replace bare serializers with (serializer ...) 2023-04-02 12:35:30 +02:00
accounts.scm
base16.scm
base32.scm
base64.scm
boot-parameters.scm
bournish.scm
build-emacs-utils.scm
build-utils.scm
builders.scm
cache.scm
challenge.scm
channels.scm
combinators.scm
containers.scm
cpan.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
cpio.scm
cran.scm
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm
discovery.scm
egg.scm
elm.scm
elpa.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
file-systems.scm
gem.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
gexp.scm
git-authenticate.scm
git.scm
glob.scm
gnu-maintenance.scm
go.scm
grafts.scm
graph.scm gnu: Purge pre-1.3.0 deprecated packages. 2023-04-07 17:53:37 +02:00
gremlin.scm
guix-archive.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-authenticate.sh
guix-build-branch.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-build.sh tests: guix-build.sh: Don't use hidden gcc for transformation tests. 2023-04-28 19:50:36 +02:00
guix-daemon.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-describe.sh
guix-download.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-environment-container.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-environment.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-gc.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-git-authenticate.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-graph.sh tests: guix-graph.sh: Fix expected path from emacs to libffi. 2023-04-28 19:50:39 +02:00
guix-hash.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-home.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-lint.sh
guix-pack-localstatedir.sh
guix-pack-relocatable.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-pack.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-package-aliases.sh tests: Relax two tests that expected a non-zero error code. 2023-04-21 17:09:46 +02:00
guix-package-net.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-package.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-refresh.sh upstream: Honor package properties for ignored and extra inputs. 2023-05-31 23:25:26 +02:00
guix-repl.sh
guix-shell-export-manifest.sh
guix-shell.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-style.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
guix-system.sh tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
hackage.scm
hexpm.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
home-import.scm
home-services.scm
http-client.scm
import-git.scm
import-github.scm
import-utils.scm packages: Remove 'origin-sha256' procedure. 2023-04-07 18:00:08 +02:00
inferior.scm
ipfs.scm
lint.scm lint: archival: Warn against non-origin package sources. 2023-05-06 17:12:45 +02:00
minetest.scm
modules.scm
monads.scm
nar.scm
networking.scm services: ntp-service-type: Remove deprecated server as strings support. 2023-04-07 17:56:07 +02:00
offload.scm
opam.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
openpgp.scm
pack.scm Revert "tests: pack: Fix indentation." 2023-03-17 12:14:14 -04:00
packages.scm tests: Re-add debug output to a package tests. 2023-04-18 11:23:47 -04:00
pki.scm
print.scm
processes.scm
profiles.scm
publish.scm
pypi.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
read-print.scm read-print: Correctly read "(. x)". 2023-05-05 23:47:48 +02:00
records.scm tests: records: Add test for ellipsis in body. 2023-06-04 10:59:28 +02:00
rpm.scm
scripts.scm
search-paths.scm
services.scm services: 'modify-services' preserves service ordering. 2023-06-06 11:54:39 +02:00
sets.scm
size.scm
status.scm
store-database.scm
store-deduplication.scm
store-roots.scm
store.scm
style.scm style: Add 'arguments' styling rule. 2023-05-18 20:01:32 +02:00
substitute.scm substitute: If a server's nar URL is 404, try the next one(s). 2023-05-30 00:15:29 +02:00
swh.scm
syscalls.scm
system.scm
test.drv
texlive.scm tests: Use quasiquoted 'match' patterns for package sexps. 2023-05-31 23:50:06 +02:00
transformations.scm transformations: Add '--with-configure-flag'. 2023-05-04 17:06:44 +02:00
ui.scm
union.scm
upstream.scm tests: upstream: Restore test that was skipped. 2023-05-31 23:25:25 +02:00
utils.scm
uuid.scm
workers.scm