diff options
-rw-r--r-- | mobly/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobly/utils.py b/mobly/utils.py index 64dc3f1..4d5dfc6 100644 --- a/mobly/utils.py +++ b/mobly/utils.py @@ -290,7 +290,7 @@ def _collect_process_tree(starting_pid): # Ignore if there is not child process. continue - children_pid_list = list(map(int, ps_results.split('\n '))) + children_pid_list = [int(p.strip()) for p in ps_results.split('\n')] stack.extend(children_pid_list) ret.extend(children_pid_list) |