mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
test: fix check for device in test-execute
The unit actually uses /dev/kmsg, not /dev/kvm Follow-up for ae7482b994e6a9bc8e (cherry picked from commit 4f276e97de67fa02337921703db7686725ac1827)
This commit is contained in:
parent
2018ccef66
commit
a1597f9e06
@ -438,7 +438,7 @@ static void test_exec_privatedevices(Manager *m) {
|
||||
|
||||
test(m, "exec-privatedevices-yes.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
|
||||
test(m, "exec-privatedevices-no.service", 0, CLD_EXITED);
|
||||
if (access("/dev/kvm", F_OK) >= 0)
|
||||
if (access("/dev/kmsg", F_OK) >= 0)
|
||||
test(m, "exec-privatedevices-bind.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
|
||||
test(m, "exec-privatedevices-disabled-by-prefix.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
|
||||
test(m, "exec-privatedevices-yes-with-group.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user