mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test-execute: rename tests for AmbientCapabilities=
The unit files for test-execute are named like `exec-(setting-name-in-lower-character)-(optional-text).service`. However, test units for AmbientCapabilities= are not following this. So, let's rename them for the consistency. This does not change anything in the functionality of the test.
This commit is contained in:
@@ -538,7 +538,7 @@ static void test_exec_capabilityboundingset(Manager *m) {
|
||||
test(m, "exec-capabilityboundingset-invert.service", 0, CLD_EXITED);
|
||||
}
|
||||
|
||||
static void test_exec_capabilityambientset(Manager *m) {
|
||||
static void test_exec_ambientcapabilities(Manager *m) {
|
||||
int r;
|
||||
|
||||
/* Check if the kernel has support for ambient capabilities. Run
|
||||
@@ -551,8 +551,8 @@ static void test_exec_capabilityambientset(Manager *m) {
|
||||
return;
|
||||
}
|
||||
|
||||
test(m, "exec-capabilityambientset.service", 0, CLD_EXITED);
|
||||
test(m, "exec-capabilityambientset-merge.service", 0, CLD_EXITED);
|
||||
test(m, "exec-ambientcapabilities.service", 0, CLD_EXITED);
|
||||
test(m, "exec-ambientcapabilities-merge.service", 0, CLD_EXITED);
|
||||
|
||||
if (!check_nobody_user_and_group()) {
|
||||
log_error_errno(errno, "nobody user/group is not synthesized or may conflict to other entries, skipping remaining tests in %s", __func__);
|
||||
@@ -564,8 +564,8 @@ static void test_exec_capabilityambientset(Manager *m) {
|
||||
return;
|
||||
}
|
||||
|
||||
test(m, "exec-capabilityambientset-" NOBODY_USER_NAME ".service", 0, CLD_EXITED);
|
||||
test(m, "exec-capabilityambientset-merge-" NOBODY_USER_NAME ".service", 0, CLD_EXITED);
|
||||
test(m, "exec-ambientcapabilities-" NOBODY_USER_NAME ".service", 0, CLD_EXITED);
|
||||
test(m, "exec-ambientcapabilities-merge-" NOBODY_USER_NAME ".service", 0, CLD_EXITED);
|
||||
}
|
||||
|
||||
static void test_exec_privatenetwork(Manager *m) {
|
||||
@@ -633,8 +633,8 @@ static int run_tests(UnitFileScope scope, const test_function_t *tests) {
|
||||
int main(int argc, char *argv[]) {
|
||||
_cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL;
|
||||
static const test_function_t user_tests[] = {
|
||||
test_exec_ambientcapabilities,
|
||||
test_exec_bindpaths,
|
||||
test_exec_capabilityambientset,
|
||||
test_exec_capabilityboundingset,
|
||||
test_exec_cpuaffinity,
|
||||
test_exec_environment,
|
||||
|
||||
@@ -45,13 +45,13 @@ test_data_files = '''
|
||||
sockets.target
|
||||
son.service
|
||||
sysinit.target
|
||||
test-execute/exec-ambientcapabilities-merge-nfsnobody.service
|
||||
test-execute/exec-ambientcapabilities-merge-nobody.service
|
||||
test-execute/exec-ambientcapabilities-merge.service
|
||||
test-execute/exec-ambientcapabilities-nfsnobody.service
|
||||
test-execute/exec-ambientcapabilities-nobody.service
|
||||
test-execute/exec-ambientcapabilities.service
|
||||
test-execute/exec-bindpaths.service
|
||||
test-execute/exec-capabilityambientset-merge-nfsnobody.service
|
||||
test-execute/exec-capabilityambientset-merge-nobody.service
|
||||
test-execute/exec-capabilityambientset-merge.service
|
||||
test-execute/exec-capabilityambientset-nfsnobody.service
|
||||
test-execute/exec-capabilityambientset-nobody.service
|
||||
test-execute/exec-capabilityambientset.service
|
||||
test-execute/exec-capabilityboundingset-invert.service
|
||||
test-execute/exec-capabilityboundingset-merge.service
|
||||
test-execute/exec-capabilityboundingset-reset.service
|
||||
|
||||
Reference in New Issue
Block a user