[Lldb-commits] [lldb] r182965 - Find 'ps' command using which() rather than invoking directly

Daniel Malea daniel.malea at intel.com
Thu May 30 14:48:58 PDT 2013


Author: dmalea
Date: Thu May 30 16:48:58 2013
New Revision: 182965

URL: http://llvm.org/viewvc/llvm-project?rev=182965&view=rev
Log:
Find 'ps' command using which() rather than invoking directly
- should address Debian test errors due to not being able to 'ps' directly


Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=182965&r1=182964&r2=182965&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu May 30 16:48:58 2013
@@ -1071,7 +1071,7 @@ def lldbLoggings():
             raise Exception('log enable failed (check GDB_REMOTE_LOG env variable.')
 
 def getMyCommandLine():
-    ps = subprocess.Popen(['ps', '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0]
+    ps = subprocess.Popen([which('ps'), '-o', "command=CMD", str(os.getpid())], stdout=subprocess.PIPE).communicate()[0]
     lines = ps.split('\n')
     cmd_line = lines[1]
     return cmd_line





More information about the lldb-commits mailing list