Commit 5a80a8cb authored by Rohit Gupta's avatar Rohit Gupta

bugfixes to autotest framework

parent 0046ed5d
...@@ -240,7 +240,8 @@ class core: ...@@ -240,7 +240,8 @@ class core:
# print rsp # print rsp
if (rsp.find(expect) == -1): if (rsp.find(expect) == -1):
return 'OK' return 'OK'
else:
print "command = " + cmd + "expect = " + expect + "rsp = " + rsp
raise log.err(self.failed(command, expect,debug)) raise log.err(self.failed(command, expect,debug))
......
...@@ -111,8 +111,8 @@ class openair(core): ...@@ -111,8 +111,8 @@ class openair(core):
error = error + ' In function: ' + sys._getframe().f_code.co_name + ': *** Caught exception: ' + str(e.__class__) + " : " + str( e) error = error + ' In function: ' + sys._getframe().f_code.co_name + ': *** Caught exception: ' + str(e.__class__) + " : " + str( e)
error = error + traceback.format_exc() error = error + traceback.format_exc()
print error print error
print "Retrying again in 60 seconds" print "Retrying again in 1 seconds"
time.sleep(60) time.sleep(1)
#sys.exit(1) #sys.exit(1)
def connect2(self, username, password, prompt='$'): def connect2(self, username, password, prompt='$'):
......
...@@ -127,7 +127,7 @@ def start_ue () : ...@@ -127,7 +127,7 @@ def start_ue () :
ip = IPRoute() ip = IPRoute()
idx = ip.link_lookup(ifname=iface)[0] idx = ip.link_lookup(ifname=iface)[0]
os.system ('route add 192.172.0.1 ppp0') os.system ('route add 192.172.0.1 ppp0')
os.system ('ping -c 5 192.172.0.1') os.system ('ping 192.172.0.1')
break break
except Exception, e: except Exception, e:
error = ' Interface ' + iface + 'does not exist...' error = ' Interface ' + iface + 'does not exist...'
......
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