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