summaryrefslogtreecommitdiffstats
path: root/lldb/examples/test/.lldb-loggings
blob: 9c92bd958479efb75dda249180258c1f38ea451b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def pre_flight(self):
    import os
    import lldb
    import lldbtest

    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()))
    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

OpenPOWER on IntegriCloud