mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
tests: ssh: Explicitly wait for port 22.
Previously we could occasionally try to connect before the server is actually listening, both for OpenSSH and Dropbear. * gnu/tests/ssh.scm (run-ssh-test)["wait for port 22"]: New test.
This commit is contained in:
parent
d10e7a348c
commit
a295a1ca29
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;;
|
;;;
|
||||||
|
@ -136,6 +136,9 @@ (define (call-with-connected-session/auth proc)
|
||||||
(current-services))))
|
(current-services))))
|
||||||
marionette))
|
marionette))
|
||||||
|
|
||||||
|
(test-assert "wait for port 22"
|
||||||
|
(wait-for-tcp-port 22 marionette))
|
||||||
|
|
||||||
;; Connect to the guest over SSH. Make sure we can run a shell
|
;; Connect to the guest over SSH. Make sure we can run a shell
|
||||||
;; command there.
|
;; command there.
|
||||||
(test-equal "shell command"
|
(test-equal "shell command"
|
||||||
|
|
Loading…
Reference in a new issue