test: fix cleanup function

Follow-up for 8349bbdfd8.
This commit is contained in:
Yu Watanabe
2024-02-15 12:11:06 +09:00
committed by Lennart Poettering
parent 058a84d113
commit 7774a7ca79

View File

@@ -322,7 +322,7 @@ if command -v ssh &> /dev/null && command -v sshd &> /dev/null && ! [[ -v ASAN_O
rm -f /tmp/homed.id_rsa /run/systemd/system/mysshserver.socket /run/systemd/system/mysshserver@.service
systemctl daemon-reload
homectl remove homedsshtest ||:
mv /etc/pam.d/sshd.save46 mv /etc/pam.d/sshd
mv /etc/pam.d/sshd.save46 /etc/pam.d/sshd
}
trap at_exit EXIT