[Lldb-commits] [lldb] r155168 - /lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py

Johnny Chen johnny.chen at apple.com
Thu Apr 19 16:46:04 PDT 2012


Author: johnny
Date: Thu Apr 19 18:46:03 2012
New Revision: 155168

URL: http://llvm.org/viewvc/llvm-project?rev=155168&view=rev
Log:
Cleanup the pre/post-flight functions.

Modified:
    lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py

Modified: lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py?rev=155168&r1=155167&r2=155168&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py (original)
+++ lldb/branches/lldb-platform-work/test/lldb-pre-post-flight.py Thu Apr 19 18:46:03 2012
@@ -12,11 +12,9 @@
 import unittest2
 
 def pre_flight(test):
-    __import__("lldb")
-    __import__("lldbtest")
-    __import__("pexpect")
-    print "\nRunning pre-flight function:"
-    print "for test case:", test
+    print "\nRunning pre-flight for test case:", test
+    #traceback = __import__("traceback")
+    #traceback.print_stack()
     # Examples:
     #test.runCmd('platform select remote-macosx')
     #test.runCmd('platform connect -c /tmp/cache connect://localhost:12345 -r -R "-avz"')
@@ -27,11 +25,7 @@
     test.runCmd('platform connect %s -c %s' % (lldbtest_platform_url, lldbtest_local_cache))
 
 def post_flight(test):
-    __import__("lldb")
-    __import__("lldbtest")
-    __import__("pexpect")
-    print "\nRunning post-flight function:"
-    print "for test case:", test
+    print "\nRunning post-flight for test case:", test
     test.runCmd('platform disconnect')
 
 lldbtest_remote_sandbox = os.environ['LLDBTEST_REMOTE_SANDBOX'] if 'LLDBTEST_REMOTE_SANDBOX' in os.environ else None





More information about the lldb-commits mailing list