[oe-commits] Richard Purdie : qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated

git at git.openembedded.org git at git.openembedded.org
Sat Mar 30 13:02:00 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 1347381b4f93b318fadc2360c4adf0c68b562b13
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1347381b4f93b318fadc2360c4adf0c68b562b13

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sat Mar 30 12:50:10 2013 +0000

qemuimage-testlib: Use ww option to ps to ensure command output isn't truncated

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/qemuimage-testlib-pythonhelper |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/qemuimage-testlib-pythonhelper b/scripts/qemuimage-testlib-pythonhelper
index 2c1f557..bb01246 100755
--- a/scripts/qemuimage-testlib-pythonhelper
+++ b/scripts/qemuimage-testlib-pythonhelper
@@ -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 = {}





More information about the Openembedded-commits mailing list