1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

test-execute: skip one more test when PID1 is not systemd

Fixes #23332.
This commit is contained in:
Yu Watanabe 2022-05-17 07:06:39 +09:00 committed by Daan De Meyer
parent 9b7c8253f9
commit bfd671061c

View File

@ -1107,6 +1107,12 @@ static void test_exec_condition(Manager *m) {
}
static void test_exec_umask_namespace(Manager *m) {
/* exec-specifier-credentials-dir.service creates /run/credentials and enables implicit
* InaccessiblePath= for the directory for all later services with mount namespace. */
if (!is_inaccessible_available()) {
log_notice("Testing without inaccessible, skipping %s", __func__);
return;
}
test(m, "exec-umask-namespace.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
}