mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
nic_router_flood.run: adjust success condition
On x86_32 okl4, the test timed out although the test timeout was already at 240 seconds for this platform. Instaed of raising it further, this commit reduces the number of ping rounds for all platforms that are considered as slower by the test. Ref #4923
This commit is contained in:
parent
e8ee2cc227
commit
cc99646b23
@ -13,14 +13,14 @@ if {[get_cmd_switch --autopilot] && ([have_board virt_qemu_riscv] ||
|
||||
exit 0
|
||||
}
|
||||
|
||||
proc test_timeout { } {
|
||||
proc num_ping_rounds { } {
|
||||
if {[have_spec sel4] && [have_spec x86]} {
|
||||
return 240
|
||||
return 10
|
||||
}
|
||||
if {[have_spec okl4] || [have_spec pistachio]} {
|
||||
return 240
|
||||
return 10
|
||||
}
|
||||
return 120
|
||||
return 30
|
||||
}
|
||||
|
||||
proc good_dst_ip { } { return "10.0.2.2" }
|
||||
@ -210,4 +210,4 @@ build_boot_image [build_artifacts]
|
||||
append qemu_args " -nographic "
|
||||
append_qemu_nic_args
|
||||
|
||||
run_genode_until {.*ping\] 64 bytes from 10\.0\.2\.2: icmp_seq=30 .*\n} [test_timeout]
|
||||
run_genode_until ".*ping\] 64 bytes from 10\.0\.2\.2: icmp_seq=[num_ping_rounds] .*\n" 120
|
||||
|
Loading…
x
Reference in New Issue
Block a user