[docs] Update HowToReleaseLLVM documentation.
[llvm-project.git] / lldb / examples / test / .lldb-loggings
blob873bb88c844d8e5404045c8ae97b97a62b57bdea
1 def pre_flight(self):
2     import os
3     import lldb
4     import lldbtest
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)
14 #def post_flight(test):
15 #    __import__("lldb")
16 #    __import__("lldbtest")
17 #    print "\nRunning post-flight function:"
18 #    print "for test case:", test