@@ -54,10 +54,11 @@ def run(test, params, env):
54
54
ping_ext_host = params .get ("ping_ext_host" , "no" ) == "yes"
55
55
pre_cmd = params .get ("pre_cmd" , None )
56
56
vm = env .get_vm (params ["main_vm" ])
57
+ serial_status = params .get_boolean ("serial_login" , "no" )
57
58
58
59
error_context .context ("Login to guest" , test .log .info )
59
60
vm .verify_alive ()
60
- session = vm .wait_for_login (timeout = timeout )
61
+ session = vm .wait_for_login (timeout = timeout , serial = serial_status )
61
62
62
63
# get the test ip, interface & session
63
64
dest_ips = []
@@ -108,14 +109,15 @@ def run(test, params, env):
108
109
interval , session = session , count = counts )
109
110
110
111
# ping with flood
111
- if not ping_ext_host or params .get ("os_type" ) == "linux" :
112
- error_context .context ("Flood ping test" , test .log .info )
113
- _ping_with_params (test , params , ip , interface ,
114
- session = session , flood = True )
112
+ if params .get_boolean ("flood_ping" , "yes" ):
113
+ if not ping_ext_host or params .get ("os_type" ) == "linux" :
114
+ error_context .context ("Flood ping test" , test .log .info )
115
+ _ping_with_params (test , params , ip , interface ,
116
+ session = session , flood = True )
115
117
116
- # ping to check whether the network is alive
117
- error_context .context ("Ping test after flood ping,"
118
- " Check if the network is still alive" ,
119
- test .log .info )
120
- _ping_with_params (test , params , ip , interface ,
121
- session = session , count = counts )
118
+ # ping to check whether the network is alive
119
+ error_context .context ("Ping test after flood ping,"
120
+ " Check if the network is still alive" ,
121
+ test .log .info )
122
+ _ping_with_params (test , params , ip , interface ,
123
+ session = session , count = counts )
0 commit comments