mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
test: temporarily skip failing tests on GH Actions
This commit is contained in:
parent
a74be22cd6
commit
d1b74295e8
@ -37,6 +37,16 @@ int main(int argc, char *argv[]) {
|
||||
if (detect_container() > 0)
|
||||
return log_tests_skipped("test-bpf-firewall fails inside LXC and Docker containers: https://github.com/systemd/systemd/issues/9666");
|
||||
|
||||
#ifdef __clang__
|
||||
/* FIXME: This test is for (currently unknown) reasons failing in both
|
||||
* sanitized and unsanitized clang runs. Until the issue is resolved,
|
||||
* let's skip the test when running on GH Actions and compiled with
|
||||
* clang.
|
||||
*/
|
||||
if (strstr_ptr(ci_environment(), "github-actions"))
|
||||
return log_tests_skipped("Skipping test on GH Actions");
|
||||
#endif
|
||||
|
||||
assert_se(getrlimit(RLIMIT_MEMLOCK, &rl) >= 0);
|
||||
rl.rlim_cur = rl.rlim_max = MAX(rl.rlim_max, CAN_MEMLOCK_SIZE);
|
||||
(void) setrlimit(RLIMIT_MEMLOCK, &rl);
|
||||
|
@ -574,6 +574,11 @@ static void test_exec_dynamicuser(Manager *m) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (strstr_ptr(ci_environment(), "github-actions")) {
|
||||
log_notice("%s: skipping test on GH Actions because of systemd/systemd#10337", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
test(m, "exec-dynamicuser-fixeduser.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
|
||||
if (check_user_has_group_with_same_name("adm"))
|
||||
test(m, "exec-dynamicuser-fixeduser-adm.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
|
||||
|
@ -132,9 +132,9 @@ int main(int argc, char *argv[]) {
|
||||
return EXIT_TEST_SKIP;
|
||||
}
|
||||
|
||||
if (strstr_ptr(ci_environment(), "autopkgtest")) {
|
||||
if (strstr_ptr(ci_environment(), "autopkgtest") || strstr_ptr(ci_environment(), "github-actions")) {
|
||||
// FIXME: we should reenable this one day
|
||||
log_tests_skipped("Skipping test on Ubuntu autopkgtest CI, test too slow and installed udev too flakey.");
|
||||
log_tests_skipped("Skipping test on Ubuntu autopkgtest CI/GH Actions, test too slow and installed udev too flakey.");
|
||||
return EXIT_TEST_SKIP;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user