2012-08-23 02:48:13 +08:00
|
|
|
def pre_flight(self):
|
|
|
|
import os
|
|
|
|
import lldb
|
|
|
|
import lldbtest
|
|
|
|
|
2012-08-23 04:25:33 +08:00
|
|
|
dname = os.path.join(os.environ["LLDB_TEST"],
|
|
|
|
os.environ["LLDB_SESSION_DIRNAME"])
|
|
|
|
if not os.path.isdir(dname):
|
|
|
|
os.mkdir(dname)
|
|
|
|
dest = os.path.join(dname, "lldb_log-%s-%s-%s.txt" % (self.getArchitecture(), self.getCompiler(), self.id()))
|
2012-08-23 02:48:13 +08:00
|
|
|
print "\nEnabling lldb logging for test case:", self
|
|
|
|
print "with log destination:", dest
|
|
|
|
self.runCmd("log enable -f %s gdb-remote packets process" % dest)
|
|
|
|
|
|
|
|
#def post_flight(test):
|
|
|
|
# __import__("lldb")
|
|
|
|
# __import__("lldbtest")
|
|
|
|
# print "\nRunning post-flight function:"
|
|
|
|
# print "for test case:", test
|
|
|
|
|