[Swan-dev] [Swan-commit] Changes to ref refs/heads/master

Andrew Cagney andrew.cagney at gmail.com
Wed Feb 3 16:57:53 UTC 2016


FYI,

I got annoyed at my favourite test, and others, failing occasionally
for no reason other than my machine also being busy building yet
another embedded linux distro :-/  Assuming this seems reasonable we
can start sprinkling this pixie dust on other tests (like I've been
doing with also=slow-retransmits).

It changes this the expected output to:

diff --git a/testing/pluto/ikev2-50-propnum/west.console.txt
b/testing/pluto/ikev2-50-propnum/west.console.txt
index c81528b..2f0d569 100644
--- a/testing/pluto/ikev2-50-propnum/west.console.txt
+++ b/testing/pluto/ikev2-50-propnum/west.console.txt
@@ -2,15 +2,8 @@
 west #
  # confirm that the network is alive
 west #
- ping -n -c 4 -I 192.0.1.254 192.0.2.254
- ...
+ ../../pluto/bin/wait-until-online 192.0.2.254 -I 192.0.1.254
+192.0.2.254 -I 192.0.1.254 is online
 west #
  # make sure that clear text does not get through
 west #

If things do go wrong it will do this:

$ ./testing/pluto/bin/wait-until-online 192.168.16.2
ping -n -c 1 -w 4 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data.
>From 192.168.15.1 icmp_seq=1 Destination Host Unreachable

--- 192.168.16.2 ping statistics ---
3 packets transmitted, 0 received, +1 errors, 100% packet loss, time 1999ms
pipe 3
192.168.16.2 is offline

Andrew

(perhaps it should be re-painted wait-until-alive :-)

On 3 February 2016 at 11:41, Andrew Cagney <cagney at vault.libreswan.fi> wrote:
> New commits:
> commit 683d2611427b128cbef06641039de46b67f7bbfb
> Author: Andrew Cagney <cagney at gnu.org>
> Date:   Wed Jan 20 15:14:04 2016 -0500
>
>     testing: add testing/pluto/bin/wait-until-online
>
>     Prints "HOST is online" provided HOST comes online within 4 seconds.
>     That way the output is predictable when things are a little slow.
>
>     Use in ikev2-50-propnum, run version from current directory tree, not /testing.
>
> _______________________________________________
> Swan-commit mailing list
> Swan-commit at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan-commit


More information about the Swan-dev mailing list