make process count check even simpler

Signed-off-by: Csaba Palfi <csaba@palfi.me>
This commit is contained in:
Csaba Palfi 2015-08-17 17:41:47 +01:00
parent d7926a0f31
commit 831a373a61

View file

@ -62,7 +62,7 @@ else
fail=0
printcheck=0
for c in $containers; do
processes=$(docker exec "$c" ps -el 2>/dev/null | tail -n +2 | grep -v "ps -el" | wc -l | tr -d ' ')
processes=$(docker exec "$c" ps -el 2>/dev/null | tail -n +2 | grep -c -v "ps -el")
if [ "$processes" -gt 1 ]; then
# If it's the first container, fail the test
if [ $fail -eq 0 ]; then