brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · 873bb88 Raw
20 lines · plain
1def pre_flight(self):2    import os3    import lldb4    import lldbtest5 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:", self11    print "with log destination:", dest12    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:", test19 20