From 2af9cb795295dacc69ce7e635eff2b422d63dccb Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Tue, 19 Jun 2018 16:27:11 +0200 Subject: [PATCH] nic_router_flood.run: be more flexible Do not simply wait for the good ping test to finish, but for the other flood tests to trigger the RAM exhaustion. This makes the test more robust with slower platforms or a different timing. Issue #2857 --- repos/os/run/nic_router_flood.run | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/repos/os/run/nic_router_flood.run b/repos/os/run/nic_router_flood.run index 7ccbd1c40..1ecfb81c4 100644 --- a/repos/os/run/nic_router_flood.run +++ b/repos/os/run/nic_router_flood.run @@ -85,6 +85,7 @@ append config { + count="999"/> @@ -195,4 +196,10 @@ append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 " append qemu_args " -net user -nographic " -run_genode_until ".*\"ping\" exited with exit value 0.*\n" 60 +set done_string "" +for {set i 0} {$i < 2} {incr i 1} { + append done_string {.*nic_router\] \[flood_links\] drop packet \(RAM quota exhausted.*\n} + append done_string {.*ping\] 64 bytes from 10\.0\.2\.2.*\n} +} + +run_genode_until $done_string 120