Bug 777500 - Log information about device before and after test for remote mochitest and reftests;r=jmaher

This commit is contained in:
William Lachance 2012-07-25 20:45:36 -04:00
parent 67212c8333
commit 2795774129
2 changed files with 6 additions and 0 deletions

View File

@ -424,6 +424,8 @@ def main(args):
if (dm.processExist(procName)):
dm.killProcess(procName)
print dm.getInfo()
#an example manifest name to use on the cli
# manifest = "http://" + options.remoteWebServer + "/reftests/layout/reftests/reftest-sanity/reftest.list"
logcat = []
@ -441,6 +443,7 @@ def main(args):
reftest.stopWebServer(options)
print ''.join(logcat[-500:-1])
print dm.getInfo()
return 0
if __name__ == "__main__":

View File

@ -407,6 +407,8 @@ def main():
auto.setRemoteLog(options.remoteLogFile)
auto.setServerInfo(options.webServer, options.httpPort, options.sslPort)
print dm.getInfo()
procName = options.app.split('/')[-1]
if (dm.processExist(procName)):
dm.killProcess(procName)
@ -485,6 +487,7 @@ def main():
sys.exit(1)
print ''.join(logcat[-500:-1])
print dm.getInfo()
sys.exit(retVal)
if __name__ == "__main__":