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:
committed by
Norman Feske
parent
267239147a
commit
2a761c7fea
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user