Commit 108b158f authored by Rohit Gupta's avatar Rohit Gupta

updates for adding Sony Experia M4 to test setup

parent 2ccc57d6
......@@ -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[@]}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment