From fff8008c6cfa3b224859bc4ac7cf8a3d35c22204 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Wed, 3 Apr 2013 14:15:16 +0530 Subject: tests: Remove grep process entries from pidgrep Problem: We were picking process with lowest pid from ps|grep result. However, lowest pid need not be oldest process as recycling of PIDs can take place. Solution: Removed grep process entries from ps entries using grep -v grep. Change-Id: I2b9687a05a34cf6358f773183770d69a3fb9eb10 BUG: 858488 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/4765 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-858488-min-free-disk.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bugs/bug-858488-min-free-disk.t') diff --git a/tests/bugs/bug-858488-min-free-disk.t b/tests/bugs/bug-858488-min-free-disk.t index 43ef1496ba1..ae5ac3bde60 100644 --- a/tests/bugs/bug-858488-min-free-disk.t +++ b/tests/bugs/bug-858488-min-free-disk.t @@ -7,7 +7,7 @@ cleanup; function pidgrep() { - ps ax | grep "$1" | awk '{print $1}' | head -1 + ps ax | grep "$1" | grep -v grep | awk '{print $1}' | head -1 } ## Start glusterd -- cgit