summaryrefslogtreecommitdiffstats
path: root/src/test/test-execute.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-12-03 06:27:32 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-12-05 16:37:09 +0100
commit028f3a7f9c75161c0b38be4e690a5b45d4d7b1c1 (patch)
treeb848ae90abd9a4fc0116d6a72ec2b908d5686c7f /src/test/test-execute.c
parenttest-execute: cleanup (diff)
downloadsystemd-028f3a7f9c75161c0b38be4e690a5b45d4d7b1c1.tar.xz
systemd-028f3a7f9c75161c0b38be4e690a5b45d4d7b1c1.zip
test-execute: add test for that DynamicUser= migrate StateDirectory=
Test for 949befd3f09e8c06a908ec99efd241666c21d944.
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r--src/test/test-execute.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index 92efc09371..1ef6bb4efa 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -341,6 +341,13 @@ static void test_exec_dynamicuser(Manager *m) {
test(m, "exec-dynamicuser-fixeduser-one-supplementarygroup.service", 0, CLD_EXITED);
test(m, "exec-dynamicuser-supplementarygroups.service", 0, CLD_EXITED);
test(m, "exec-dynamicuser-statedir.service", 0, CLD_EXITED);
+
+ test(m, "exec-dynamicuser-statedir-migrate-step1.service", 0, CLD_EXITED);
+ test(m, "exec-dynamicuser-statedir-migrate-step2.service", 0, CLD_EXITED);
+ (void) rm_rf("/var/lib/test-dynamicuser-migrate", REMOVE_ROOT|REMOVE_PHYSICAL);
+ (void) rm_rf("/var/lib/test-dynamicuser-migrate2", REMOVE_ROOT|REMOVE_PHYSICAL);
+ (void) rm_rf("/var/lib/private/test-dynamicuser-migrate", REMOVE_ROOT|REMOVE_PHYSICAL);
+ (void) rm_rf("/var/lib/private/test-dynamicuser-migrate2", REMOVE_ROOT|REMOVE_PHYSICAL);
}
static void test_exec_environment(Manager *m) {