From 8d6f1e81c2b34cb90c4d0dc8e0a1d482123602d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Tue, 29 Mar 2016 23:52:39 +0200 Subject: [PATCH] ps flags not in output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/5_container_runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/5_container_runtime.sh b/tests/5_container_runtime.sh index 68eb733..d9a3305 100644 --- a/tests/5_container_runtime.sh +++ b/tests/5_container_runtime.sh @@ -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 -c -v "ps -el") + processes=$(docker exec "$c" ps -el 2>/dev/null | tail -n +2 | grep -c -v 'ps') if [ "$processes" -gt 1 ]; then # If it's the first container, fail the test if [ $fail -eq 0 ]; then