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