1def pre_flight(self): 2 import os 3 import lldb 4 import lldbtest 5 6 dname = os.path.join(os.environ["LLDB_TEST"], 7 os.environ["LLDB_SESSION_DIRNAME"]) 8 if not os.path.isdir(dname): 9 os.mkdir(dname) 10 dest = os.path.join(dname, "lldb_log-%s-%s-%s.txt" % (self.getArchitecture(), self.getCompiler(), self.id())) 11 print "\nEnabling lldb logging for test case:", self 12 print "with log destination:", dest 13 self.runCmd("log enable -f %s gdb-remote packets process" % dest) 14 15#def post_flight(test): 16# __import__("lldb") 17# __import__("lldbtest") 18# print "\nRunning post-flight function:" 19# print "for test case:", test 20 21