diff options
author | David Tardon <dtardon@redhat.com> | 2021-03-31 10:08:31 +0200 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2021-06-22 15:01:23 +0200 |
commit | 55cde82204724df756a198da691471f2f3f83d5a (patch) | |
tree | b990f9208a8a7b74e894e88b5f08b74b7c240ee4 | |
parent | b6ffe7ec63d86c5ac66171d6731068b87e3e7b50 (diff) | |
download | systemd-55cde82204724df756a198da691471f2f3f83d5a.tar.gz |
test-install-root: create referenced targets
(cherry picked from commit cd228002ccedb927b4531a4b7dd9ea7015fdb657)
Related: #1835351
-rw-r--r-- | src/test/test-install-root.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c index fe1ca5b16f..f8b41b04db 100644 --- a/src/test/test-install-root.c +++ b/src/test/test-install-root.c @@ -1061,6 +1061,12 @@ int main(int argc, char *argv[]) { p = strjoina(root, "/usr/lib/systemd/system-preset/"); assert_se(mkdir_p(p, 0755) >= 0); + p = strjoina(root, "/usr/lib/systemd/system/multi-user.target"); + assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); + + p = strjoina(root, "/usr/lib/systemd/system/graphical.target"); + assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0); + test_basic_mask_and_enable(root); test_linked_units(root); test_default(root); |