]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
ppp-over-tls tests: try to keep CentOS 6 CI working, and improve flaky startup of...
authorDaniel Lenski <dlenski@gmail.com>
Wed, 24 Feb 2021 05:03:47 +0000 (21:03 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 29 Mar 2021 02:27:01 +0000 (19:27 -0700)
commit8a90c88be16a8940a449e8261faec53460ee7884
treee6ce2d4fedec062682297837eaf79ac512685e7f
parent65564c3a433bcefb3d6ab95826ace7a8ee59f465
ppp-over-tls tests: try to keep CentOS 6 CI working, and improve flaky startup of pppd

Even with EPEL, CentOS has an old version of socat which doesn't support the
'rawer' option, so let's use the older 'raw,echo=0' combination to keep it
limping along.

More carefully try to verify that socat and pppd start up and connect to each other:

- Wait for socat to create PTY in 1-second increments, and keep going until PTY
  actually exists (up to 15 seconds).
- Wait for ppp to connect to PTY in 1-second increments, and keep going until pppd
  creates a "UUCP-style lockfile" for the PTY.
- Log how long it takes for the above process to complete (socat and pppd combined
  startup) in the test output.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
tests/common.sh
tests/ppp-over-tls