]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Mar 2013 12:50:10 +0000 (12:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Mar 2013 13:03:40 +0000 (13:03 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/qemuimage-testlib-pythonhelper

index 2c1f557778da2aa45510acf0158f1c9bc0e1b679..bb01246c77fbeb6030c996f7895d477c0233129a 100755 (executable)
@@ -19,7 +19,7 @@ if options.findqemu:
     #
     # Walk the process tree from the process specified looking for a qemu-system. Return its pid.
     #
-    ps = subprocess.Popen(['ps', 'ax', '-o', 'pid,ppid,command'], stdout=subprocess.PIPE).communicate()[0]
+    ps = subprocess.Popen(['ps', 'axww', '-o', 'pid,ppid,command'], stdout=subprocess.PIPE).communicate()[0]
     processes = ps.split('\n')
     nfields = len(processes[0].split()) - 1
     pids = {}