Fix 'Get SOL Console Pid' to handle longer ssh_pw paths.
Change-Id: I42de00c5c000223d70287490afa68d0f6ec10dc8
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 04ef793..30aa4d4 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -526,8 +526,8 @@
# replace them in our search string with the regexes to indicate that they
# are optional.
${search_string}= Replace String ${search_string} " ["]?
- ${cmd_buf}= Catenate echo $(ps -ef | egrep '${search_string}'
- ... | egrep -v grep | cut -c10-14)
+ ${cmd_buf}= Catenate echo $(ps awwo user,pid,cmd | egrep
+ ... '${search_string}' | egrep -v grep | cut -c10-14)
Rdpissuing ${cmd_buf}
${rc} ${os_con_pid}= Run And Return Rc And Output ${cmd_buf}
Rdpvars os_con_pid