From: John L. Hammond Date: Tue, 10 May 2016 14:36:42 +0000 (-0500) Subject: LU-6937 test: use ps in get_agent_uuid() X-Git-Tag: 2.8.53~1 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F20093%2F2;p=fs%2Flustre-release.git LU-6937 test: use ps in get_agent_uuid() Use 'ps -C $HSMTOOL_BASE -o args=' rather than 'pgrep -fl $HSMTOOL_BASE' to get the copytool command line. Signed-off-by: John L. Hammond Change-Id: Idb1238966de1a8bea5d5c225632936d8c0a88529 Reviewed-on: http://review.whamcloud.com/20093 Reviewed-by: Minh Diep Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 6c7b890..014bf41 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -3620,8 +3620,8 @@ get_agent_uuid() { # Lustre mount-point is mandatory and last parameter on # copytool cmd-line. - local mntpnt=$(do_rpc_nodes $agent pgrep -fl $HSMTOOL_BASE | - grep -v pgrep | awk '{print $NF}') + local mntpnt=$(do_rpc_nodes $agent ps -C $HSMTOOL_BASE -o args= | + awk '{print $NF}') [ -n "$mntpnt" ] || error "Found no Agent or with no mount-point "\ "parameter" do_rpc_nodes $agent get_client_uuid $mntpnt | cut -d' ' -f2