run: lwip use is_qemu
This commit is contained in:
parent
b5d3be9c85
commit
5c6f13b0d3
|
@ -148,16 +148,15 @@ append qemu_args " -net user -redir tcp:5555::80 "
|
||||||
|
|
||||||
run_genode_until {.*Start the server loop \.\.\..*} 30
|
run_genode_until {.*Start the server loop \.\.\..*} 30
|
||||||
|
|
||||||
if [is_amt_available] {
|
|
||||||
set match_string "got IP address"
|
if [is_qemu_available] {
|
||||||
grep_output $match_string
|
|
||||||
unify_output {[\r\n\t]+} ""
|
|
||||||
unify_output {[\033]\[0m} ""
|
|
||||||
set pos [string first $match_string $output]
|
|
||||||
set ip_addr [string replace $output 0 [expr $pos+14]]
|
|
||||||
set uri "http://$ip_addr:80/"
|
|
||||||
} else {
|
|
||||||
set uri "http://localhost:5555/"
|
set uri "http://localhost:5555/"
|
||||||
|
} else {
|
||||||
|
set match_string "got IP address (.*)\033.*\n"
|
||||||
|
run_genode_until $match_string 30 $server_spawn_id
|
||||||
|
regexp $match_string $output all ip_addr
|
||||||
|
|
||||||
|
set uri "http://$ip_addr:80/"
|
||||||
}
|
}
|
||||||
|
|
||||||
puts "http server is up, try to query website $uri"
|
puts "http server is up, try to query website $uri"
|
||||||
|
|
Loading…
Reference in New Issue