mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +00:00
autopilot: add '--autopilot' run option
The '--autopilot' option makes it possible for a run script to detect if it is being executed by the autopilot by if { [get_cmd_switch --autopilot] } { ... } In that case, the run script could do an automated test, whereas the test could be interactive when run without this option. Fixes #2076
This commit is contained in:
committed by
Christian Helmuth
parent
a08846edf0
commit
16f0a69a8b
@ -309,7 +309,7 @@ foreach platform $platforms {
|
|||||||
if {[info exists ::env(RUN_OPT_AUTOPILOT)]} {
|
if {[info exists ::env(RUN_OPT_AUTOPILOT)]} {
|
||||||
set kernel [exec echo $platform |& sed {s/_.*//}]
|
set kernel [exec echo $platform |& sed {s/_.*//}]
|
||||||
|
|
||||||
exec echo "RUN_OPT=--include boot_dir/$kernel $::env(RUN_OPT_AUTOPILOT)" >> $build_conf
|
exec echo "RUN_OPT=--include boot_dir/$kernel --autopilot $::env(RUN_OPT_AUTOPILOT)" >> $build_conf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user