run: extend genode_until_run by a spawn id

genode_until_run can be called now with a spawn id to able to reattach to a
spawned process (amt, serial output). Run scripts can now call genode_until_run
multiple times.
This commit is contained in:
Alexander Boettcher
2013-04-08 10:43:05 +02:00
committed by Norman Feske
parent 267239147a
commit 2a761c7fea
9 changed files with 157 additions and 29 deletions

View File

@@ -26,7 +26,15 @@ proc build_boot_image {binaries} {
}
proc run_genode_until {{wait_for_re forever} {timeout_value 0}} {
proc run_genode_until {{wait_for_re forever} {timeout_value 0} {running_spawn_id -1}} {
#
# If a running_spawn_id is specified, wait for the expected output
#
if {$running_spawn_id != -1} {
wait_for_output $wait_for_re $timeout_value $running_spawn_id
return
}
global output
set timeout $timeout_value
set orig_pwd [pwd]