tests/vm/freebsd: Reload the sshd configuration
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 6 Feb 2024 00:22:01 +0000 (01:22 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 6 Feb 2024 09:27:50 +0000 (10:27 +0100)
After console_sshd_config(), the SSH server needs to be nudged to pick
up the new configs. The scripts for the other BSD flavors already do
this with a reboot, but a simple reload is sufficient.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240206002344.12372-3-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/vm/freebsd

index b581bd17fb7c28963d93c5ed91c89a4642634dfb..1247f40a385d458a814415f8f5680cb7a3663864 100755 (executable)
@@ -108,6 +108,7 @@ class FreeBSDVM(basevm.BaseVM):
         prompt = "root@freebsd:~ #"
         self.console_ssh_init(prompt, "root", self._config["root_pass"])
         self.console_sshd_config(prompt)
+        self.console_wait_send(prompt, "service sshd reload\n")
 
         # setup virtio-blk #1 (tarfile)
         self.console_wait(prompt)