From 963551877f3747d39a3f4c9eb3c0dfec4f452f98 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 16 Jun 2014 10:13:10 +0200 Subject: [PATCH] netperf: wait for output of all spawned processes --- repos/ports/run/netperf.inc | 4 +++- tool/run | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/repos/ports/run/netperf.inc b/repos/ports/run/netperf.inc index 3a7e8499f7..495779eb38 100644 --- a/repos/ports/run/netperf.inc +++ b/repos/ports/run/netperf.inc @@ -255,7 +255,9 @@ foreach netperf_test $netperf_tests { spawn netperf-$version -H $ip_addr -P 1 -v 2 -t $netperf_test -c -C -- -m $packet_size $force_ports set netperf_id $spawn_id - run_genode_until "Segment" 60 $netperf_id + set spawn_id_list [list $netperf_id $serial_id] + + run_genode_until "Segment" 60 $spawn_id_list # get throughput from netperf output set throughput [regexp -all -inline {([0-9]+[ ]+){3}[0-9]+\.[0-9]+[ ]+[0-9]+\.[0-9]+} $output] diff --git a/tool/run b/tool/run index fc088fb133..30bc922c79 100755 --- a/tool/run +++ b/tool/run @@ -112,6 +112,7 @@ proc build_boot_image {binaries} { } # \param wait_for_re regular expression that matches the test completion # \param timeout_value timeout in seconds # \param spawn_id spawn_id of a already running and spawned process +# spawn_id may be a list of spawned processes if needed # \global output contains the core output (modified) # # If the function is called without any argument, Genode is executed in