diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-01 15:48:14 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-04 17:52:56 +0200 |
commit | edd595f760ea8db26d3d7011857e5da1a232cced (patch) | |
tree | f696117e20d600b4e3e9e2c4b7b7d8955e4c101c /src/test/test-specifier.c | |
parent | nspawn: ignore NULL machine ID in the container (diff) | |
download | systemd-edd595f760ea8db26d3d7011857e5da1a232cced.tar.xz systemd-edd595f760ea8db26d3d7011857e5da1a232cced.zip |
specifier: always convert missing machine-id file to EUNATCH
Then, use id128_get_machine().
Diffstat (limited to 'src/test/test-specifier.c')
-rw-r--r-- | src/test/test-specifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-specifier.c b/src/test/test-specifier.c index 62986e8dc2..6d4093ec05 100644 --- a/src/test/test-specifier.c +++ b/src/test/test-specifier.c @@ -136,7 +136,7 @@ TEST(specifiers) { xsprintf(spec, "%%%c", s->specifier); r = specifier_printf(spec, SIZE_MAX, specifier_table, NULL, NULL, &resolved); - if (s->specifier == 'm' && IN_SET(r, -ENOENT, -ENOMEDIUM)) /* machine-id might be missing in build chroots */ + if (s->specifier == 'm' && IN_SET(r, -EUNATCH, -ENOMEDIUM)) /* machine-id might be missing in build chroots */ continue; assert_se(r >= 0); |