File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ systemctl service-log-level systemd-homed debug
4444mkdir -p /home
4545mount -t tmpfs tmpfs /home -o size=290M
4646
47+ TMP_SKEL=$( mktemp -d)
48+ echo hogehoge > " $TMP_SKEL " /hoge
49+
4750# we enable --luks-discard= since we run our tests in a tight VM, hence don't
4851# needlessly pressure for storage. We also set the cheapest KDF, since we don't
4952# want to waste CI CPU cycles on it. We also effectively disable rate-limiting on
@@ -55,7 +58,8 @@ NEWPASSWORD=xEhErW0ndafV4s homectl create test-user \
5558 --luks-pbkdf-type=pbkdf2 \
5659 --luks-pbkdf-time-cost=1ms \
5760 --rate-limit-interval=1s \
58- --rate-limit-burst=1000
61+ --rate-limit-burst=1000 \
62+ --skel=" $TMP_SKEL "
5963inspect test-user
6064
6165PASSWORD=xEhErW0ndafV4s homectl authenticate test-user
@@ -211,6 +215,8 @@ PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz
211215PASSWORD=xEhErW0ndafV4s homectl with test-user -- rm /home/test-user/xyz
212216PASSWORD=xEhErW0ndafV4s homectl with test-user -- test ! -f /home/test-user/xyz
213217(! PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz)
218+ [[ $( PASSWORD=xEhErW0ndafV4s homectl with test-user -- stat -c %U /home/test-user/hoge) == " test-user" ]]
219+ [[ $( PASSWORD=xEhErW0ndafV4s homectl with test-user -- cat /home/test-user/hoge) == " $( cat " $TMP_SKEL " /hoge) " ]]
214220
215221# Regression tests
216222wait_for_state test-user inactive
You can’t perform that action at this time.
0 commit comments