mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
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
@@ -83,6 +83,24 @@ proc build_boot_image {binaries} {
|
||||
}
|
||||
|
||||
|
||||
proc run_genode_until {{wait_for_re forever} {timeout_value 0}} {
|
||||
spawn_qemu $wait_for_re $timeout_value }
|
||||
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
|
||||
}
|
||||
|
||||
#
|
||||
# Try to use one of the supported backends for running the scripts
|
||||
#
|
||||
if {[is_qemu_available]} {
|
||||
spawn_qemu $wait_for_re $timeout_value
|
||||
return
|
||||
}
|
||||
|
||||
global run_target
|
||||
puts stderr "Error: Can't execute automatically on target '$run_target'"
|
||||
exit -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user