From: Yu Watanabe Date: Wed, 20 Aug 2025 18:14:29 +0000 (+0900) Subject: TEST-46-HOMED: cleanup homedsshtest earlier X-Git-Tag: v258-rc4~59^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fb7b67556b10ae261d37504c202832027ca1317;p=thirdparty%2Fsystemd.git TEST-46-HOMED: cleanup homedsshtest earlier --- diff --git a/test/units/TEST-46-HOMED.sh b/test/units/TEST-46-HOMED.sh index c52178dab1f..2d31c6fcb2a 100755 --- a/test/units/TEST-46-HOMED.sh +++ b/test/units/TEST-46-HOMED.sh @@ -544,6 +544,7 @@ if command -v ssh &>/dev/null && command -v sshd &>/dev/null && ! [[ -v ASAN_OPT systemctl is-active -q mysshserver.socket && systemctl stop mysshserver.socket rm -f /tmp/homed.id_ecdsa /run/systemd/system/mysshserver{@.service,.socket} systemctl daemon-reload + wait_for_state homedsshtest inactive homectl remove homedsshtest for dir in /etc /usr/lib; do if [[ -f "$dir/pam.d/sshd.bak" ]]; then @@ -631,8 +632,8 @@ EOF -o "SetEnv PASSWORD=hunter4711" -o "StrictHostKeyChecking no" \ homedsshtest@localhost env - wait_for_state homedsshtest inactive - homectl remove homedsshtest + trap - EXIT + at_exit fi NEWPASSWORD=hunter4711 homectl create aliastest --storage=directory --alias=aliastest2 --alias=aliastest3 --realm=myrealm