diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-08 10:08:05 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 16:17:56 +0200 |
commit | 25407ad2a785d10b1aadff0c99829ea0cf51082b (patch) | |
tree | dc40723e68f5120274359265924c3ea7573bd944 /src/test/test-os-util.c | |
parent | test-os-util: add basic tests for os-release parsing (diff) | |
download | systemd-25407ad2a785d10b1aadff0c99829ea0cf51082b.tar.xz systemd-25407ad2a785d10b1aadff0c99829ea0cf51082b.zip |
basic/env-file: make load-env-file deduplicate entries with the same key
We generally assume parsing like the shell would do it, so the last value
should win when there are repeats.
Diffstat (limited to 'src/test/test-os-util.c')
-rw-r--r-- | src/test/test-os-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-os-util.c b/src/test/test-os-util.c index 5f82748783..d6336c53e9 100644 --- a/src/test/test-os-util.c +++ b/src/test/test-os-util.c @@ -67,8 +67,7 @@ TEST(load_os_release_pairs) { _cleanup_strv_free_ char **pairs = NULL; assert_se(load_os_release_pairs(NULL, &pairs) == 0); - assert_se(strv_equal(pairs, STRV_MAKE("ID", "ignored", // FIXME - "ID", "the-id", + assert_se(strv_equal(pairs, STRV_MAKE("ID", "the-id", "NAME", "the-name"))); assert_se(unsetenv("SYSTEMD_OS_RELEASE") == 0); |