diff options
author | Raghavendra Talur <rtalur@redhat.com> | 2013-04-03 14:15:16 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-04-04 00:47:42 -0700 |
commit | fff8008c6cfa3b224859bc4ac7cf8a3d35c22204 (patch) | |
tree | 6b191c39dff4fef33f083736d785970769b4ac3a /tests/bugs | |
parent | dcf3ecd3c08b37226481b81fb0f8b3987cbcbab4 (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/bugs')
-rw-r--r-- | tests/bugs/bug-858488-min-free-disk.t | 2 |
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 43ef1496b..ae5ac3bde 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 |