summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRaghavendra Talur <rtalur@redhat.com>2013-04-03 14:15:16 +0530
committerAnand Avati <avati@redhat.com>2013-04-04 00:47:42 -0700
commitfff8008c6cfa3b224859bc4ac7cf8a3d35c22204 (patch)
tree6b191c39dff4fef33f083736d785970769b4ac3a /tests
parentdcf3ecd3c08b37226481b81fb0f8b3987cbcbab4 (diff)
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 <rtalur@redhat.com> Reviewed-on: http://review.gluster.org/4765 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/bug-858488-min-free-disk.t2
1 files changed, 1 insertions, 1 deletions
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