From 764c42813df3de9659a1ab7b7356779d2e5d64e5 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 14 Aug 2013 15:44:33 -0700 Subject: tests: make sure to avoid 'grep' in ps output Change-Id: I48909facd2e3a2dc52a18e44d58c0e0fa2d96ec3 BUG: 887098 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/5631 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/bug-887098-gmount-crash.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bugs/bug-887098-gmount-crash.t b/tests/bugs/bug-887098-gmount-crash.t index 54e52d4dc..68f16d735 100644 --- a/tests/bugs/bug-887098-gmount-crash.t +++ b/tests/bugs/bug-887098-gmount-crash.t @@ -18,7 +18,7 @@ EXPECT 'Created' volinfo_field $V0 'Status'; function pidgrep() { - ps ax | grep "$1" | awk '{print $1}' | head -1 + ps ax | grep "$1" | grep -v grep | awk '{print $1}' | head -1 } -- cgit