updates for adding Sony Experia M4 to test setup
This commit is contained in:
@@ -50,7 +50,7 @@ def kill_processes(name):
|
||||
break;
|
||||
out_arr = out.split()
|
||||
pid_to_kill = out_arr[1]
|
||||
print "Now killing process ID" + pid_to_kill + " on Phone"
|
||||
print "Now killing process ID " + pid_to_kill + " on Phone"
|
||||
cmd = 'sudo adb -s ' + device_id +' shell "kill ' + pid_to_kill + '"'
|
||||
status, out = commands.getstatusoutput(cmd)
|
||||
if status != 0:
|
||||
@@ -74,8 +74,7 @@ def start_ue () :
|
||||
cmd = 'sudo adb -s ' + device_id + ' shell netcfg |grep 192.'
|
||||
status, out = commands.getstatusoutput(cmd)
|
||||
if (out == '') :
|
||||
print "Wating for UE to connect and get IP Address..."
|
||||
sys.exit()
|
||||
print "Waiting for UE to connect and get IP Address..."
|
||||
else :
|
||||
print "UE is now connected. IP Address settings are..." + out
|
||||
os.system('sleep 5')
|
||||
|
||||
@@ -17,4 +17,16 @@ echo "iperf_args = ${iperf_args[@]}"
|
||||
|
||||
sleep $timeout
|
||||
|
||||
while true ; do
|
||||
cmd=`sudo adb -s $device_id shell netcfg |grep 192.`
|
||||
if [ -z "$cmd" ]; then
|
||||
print "Wating for UE to connect and get IP Address..."
|
||||
else
|
||||
echo "UE is not connected. IP Address settings are... $cmd"
|
||||
break
|
||||
|
||||
done
|
||||
|
||||
print "Starting iperf now..."
|
||||
|
||||
sudo adb -s $device_id shell /data/local/tmp/iperf ${iperf_args[@]}
|
||||
|
||||
Reference in New Issue
Block a user